From bcad8af9cad82b3777cc38d1c05864a35f82bc53 Mon Sep 17 00:00:00 2001 From: Kyle Moore Date: Thu, 13 Oct 2022 16:37:28 -0400 Subject: [PATCH] update type to match jwks-rsa --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c26e5b32..4c6f6850 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import { UnauthorizedError } from './errors/UnauthorizedError'; /** * A function that defines how to retrieve the verification key given the express request and the JWT. */ -export type GetVerificationKey = (req: express.Request, token: jwt.Jwt | undefined) => jwt.Secret | Promise; +export type GetVerificationKey = (req: express.Request, token: jwt.Jwt | undefined) => jwt.Secret | undefined | Promise; /** * @deprecated use GetVerificationKey