auth0 / node-oauth2-jwt-bearer

Monorepo for libraries that protect Node APIs with OAuth2 Bearer JWTs
MIT License
95 stars 31 forks source link

nbf claim validation should include clockTolerance #115

Closed adamjmcgrath closed 1 year ago

adamjmcgrath commented 1 year ago

Description

Pass clockTolerance option through to jose so that additional JWT date claims (like nbf) get validated with clock tolerance.

References

fixes #113

codecov-commenter commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (ee0a1fc) 100.00% compared to head (128a564) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #115 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 11 11 Lines 340 340 Branches 99 99 ========================================= Hits 340 340 ``` | [Files](https://app.codecov.io/gh/auth0/node-oauth2-jwt-bearer/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=auth0) | Coverage Δ | | |---|---|---| | [packages/access-token-jwt/src/jwt-verifier.ts](https://app.codecov.io/gh/auth0/node-oauth2-jwt-bearer/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=auth0#diff-cGFja2FnZXMvYWNjZXNzLXRva2VuLWp3dC9zcmMvand0LXZlcmlmaWVyLnRz) | `100.00% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.