Skip to content

Commit

Permalink
Merge branch 'glensc-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Feb 6, 2023
2 parents 92b7a26 + fdf2d5c commit d1e88c7
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 @@ -171,7 +171,7 @@ export const expressjwt = (options: Params) => {
const key = await getVerificationKey(req, decodedToken);

try {
jwt.verify(token, key, options);
await jwt.verify(token, key, options);
} catch (err) {
const wrappedErr = new UnauthorizedError('invalid_token', err);
if (err instanceof jwt.TokenExpiredError && typeof options.onExpired === 'function') {
Expand Down

0 comments on commit d1e88c7

Please sign in to comment.