Comments (4)
This makes the entire cache useless. Because in order to verify if the token is still valid I need to hit the URL with the JWKS.
I think it's better to outline this in the README instead so that the users can disable the caching layer if they think keys can be evicted before token expirations.
from fast-jwt.
Additionally, we can probably fix this if we implement the second approach @dgonzalez suggested in #8
from fast-jwt.
from fast-jwt.
In order to mitigate this, I've added a cacheTTL
option which defaults to 10 minutes.
from fast-jwt.
Related Issues (20)
- Release pending! HOT 1
- Release pending! HOT 1
- Feature request: Support time in string format similar to jsonwebtoken HOT 1
- Release pending!
- Inconsistent releases to npm HOT 1
- Release pending! HOT 1
- [type] `expriesIn` can be a string HOT 1
- Release pending!
- Release pending!
- TokenValidationErrorCode types do not overlap with TOKEN_ERROR_CODES from source HOT 1
- Security Issue - Request For Contact Details HOT 1
- TypeScript issue with verifier KeyFetcher HOT 5
- Release pending! HOT 1
- Wrong type for DecodedJwt.payload HOT 1
- createVerifier won't verify properly with RS256 HOT 8
- Release pending! HOT 1
- Release pending!
- Shared memory caching with cluster mode HOT 1
- requiredClaims: Not all claims are checked HOT 5
- Node 22 support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-jwt.