Skip to content

Commit

Permalink
update type to match jwks-rsa
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Moore authored and jfromaniello committed Dec 22, 2022
1 parent 25a30f0 commit bcad8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<jwt.Secret>;
export type GetVerificationKey = (req: express.Request, token: jwt.Jwt | undefined) => jwt.Secret | undefined | Promise<jwt.Secret | undefined>;

/**
* @deprecated use GetVerificationKey
Expand Down

0 comments on commit bcad8af

Please sign in to comment.