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

feat: add createRemoteJWKSet cacheMaxAge option #395

Merged
merged 2 commits into from
Apr 21, 2022

Conversation

ghdoergeloh
Copy link
Contributor

A new property for the createRemoteJWKSet function to add a maximal TTL for the cached JWKS as discussed here:

Cache invalidation / TTL for createRemoteJWKSet #394

@panva
Copy link
Owner

panva commented Apr 21, 2022

The problem I see coming up with an option name and description that makes it clear this option IS NOT needed for regular operation and support of key rotation.

@panva
Copy link
Owner

panva commented Apr 21, 2022

@ghdoergeloh please review.

@panva panva added the full-ci label Apr 21, 2022
@github-actions github-actions bot removed the full-ci label Apr 21, 2022
@panva panva changed the title feat: createRemoteJWKSet uses TTL for the cached JWKS feat: add createRemoteJWKSet cacheMaxAge option Apr 21, 2022
Copy link
Contributor Author

@ghdoergeloh ghdoergeloh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine for me.

src/jwks/remote.ts Show resolved Hide resolved
@panva panva merged commit 5017d95 into panva:main Apr 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants