Skip to content

Commit 879a132

Browse files
authored
fix: express-jwt types (#412)
2 parents 3011153 + 2d4206c commit 879a132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare namespace JwksRsa {
7373
/** Types from express-jwt@>=7 */
7474
type GetVerificationKey = (req: Express.Request, token: Jwt | undefined) => Secret | undefined | Promise<Secret | undefined>;
7575

76-
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong|GetVerificationKey;
76+
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong & GetVerificationKey;
7777

7878
function passportJwtSecret(options: ExpressJwtOptions): SecretCallback;
7979

0 commit comments

Comments
 (0)