We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The verify will failed due the "nbf" claim check. In this code.
There is a options object as third optional args. If no set this args then jose will set tolerance to 0. It will leads to the JWT verify failed.
Your code validate the iat & exp with clockTolerance, so the clockTolerance should pass to jose as well.
iat
exp
clockTolerance
nbf
auth({clockTolerance: 600, issuer:'your issuer', audience: 'your audience'})
No response
audience
18.17.1
The text was updated successfully, but these errors were encountered:
Thanks for raising this @tiansen-tw - will take a look
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Checklist
Description
The verify will failed due the "nbf" claim check. In this code.
There is a options object as third optional args. If no set this args then jose will set tolerance to 0. It will leads to the JWT verify failed.
Your code validate the
iat
&exp
withclockTolerance
, so theclockTolerance
should pass to jose as well.Reproduction
nbf
claim. The value can be current timestamp + 300auth({clockTolerance: 600, issuer:'your issuer', audience: 'your audience'})
Additional context
No response
express-oauth2-jwt-bearer version
audience
Node.js version
18.17.1
The text was updated successfully, but these errors were encountered: