From 644c5e8d43458df5a8769f208ead264deb94b672 Mon Sep 17 00:00:00 2001 From: 39hn Date: Wed, 16 Nov 2022 10:14:38 +0900 Subject: [PATCH] fix: allow object for overriding private key when signing --- lib/interfaces/jwt-module-options.interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/interfaces/jwt-module-options.interface.ts b/lib/interfaces/jwt-module-options.interface.ts index d5c70004..6d451c26 100644 --- a/lib/interfaces/jwt-module-options.interface.ts +++ b/lib/interfaces/jwt-module-options.interface.ts @@ -36,7 +36,7 @@ export interface JwtModuleAsyncOptions extends Pick { export interface JwtSignOptions extends jwt.SignOptions { secret?: string | Buffer; - privateKey?: string | Buffer; + privateKey?: jwt.Secret; } export interface JwtVerifyOptions extends jwt.VerifyOptions {