Skip to content

Commit

Permalink
fix: allow object for overriding private key when signing
Browse files Browse the repository at this point in the history
  • Loading branch information
39hn committed Nov 16, 2022
1 parent ef435fb commit 644c5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interfaces/jwt-module-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface JwtModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {

export interface JwtSignOptions extends jwt.SignOptions {
secret?: string | Buffer;
privateKey?: string | Buffer;
privateKey?: jwt.Secret;
}

export interface JwtVerifyOptions extends jwt.VerifyOptions {
Expand Down

0 comments on commit 644c5e8

Please sign in to comment.