We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137cef3 commit f4bedd4Copy full SHA for f4bedd4
index.d.ts
@@ -71,7 +71,7 @@ declare namespace JwksRsa {
71
type SecretCallback = (req: Express.Request, payload: any, done: (err: any, secret?: secretType) => void) => void;
72
73
/** Types from express-jwt@>=7 */
74
- type GetVerificationKey = (req: Express.Request, token: Jwt | undefined) => Secret | Promise<Secret>;
+ type GetVerificationKey = (req: Express.Request, token: Jwt | undefined) => Secret | undefined | Promise<Secret | undefined>;
75
76
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong|GetVerificationKey;
77
0 commit comments