Skip to content
New issue

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

accept a customizable cache timeout when create JwtVerifier #108

Open
yanglyu520 opened this issue Feb 5, 2024 · 0 comments
Open

accept a customizable cache timeout when create JwtVerifier #108

yanglyu520 opened this issue Feb 5, 2024 · 0 comments

Comments

@yanglyu520
Copy link

The current implementation of func (j *JwtVerifier) New() (*JwtVerifier, error) in JwtVerifier sets a fixed timeout of 5 minutes for the cache. It would be beneficial to enhance the function to accept a customizable timeout length during JwtVerifier creation. This modification allows users to tailor the cache mechanism according to their specific use cases, particularly when fetching JWK keys might experience interruptions for durations exceeding the current default timeout, such as 10 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant