Skip to content

Commit

Permalink
fix: express-jwt types (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Jun 24, 2024
2 parents 3011153 + 2d4206c commit 879a132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ declare namespace JwksRsa {
/** Types from express-jwt@>=7 */
type GetVerificationKey = (req: Express.Request, token: Jwt | undefined) => Secret | undefined | Promise<Secret | undefined>;

function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong|GetVerificationKey;
function expressJwtSecret(options: ExpressJwtOptions): SecretCallbackLong & GetVerificationKey;

function passportJwtSecret(options: ExpressJwtOptions): SecretCallback;

Expand Down

0 comments on commit 879a132

Please sign in to comment.