-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: use provided fetcher to fetch jwks #37
fix: use provided fetcher to fetch jwks #37
Conversation
JwksClient also supports overriding I noticed that the custom fetcher removes support for This lib uses node-fetch v2 at the comment and it supports timeout but recommends using AbortSignal instead. Timeout option is removed in node-fetch v3. I'll explore a bit what to do with the timeout option. Could be we just add it as an option and for the v2 case. |
That's another option that limits unforeseen consequences a lot. Would just need to make a note in the docs that timeout isn't respected when using custom jwks fetcher and that those would be needed to be handled by the custom fetcher. |
Sorry, I'm pretty busy with other stuff. I'll redo it as we agreed ☝🏻 and push commits here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I had to do some magic tricks to keep the fetcher's interface the same because JwksClient expects to just return the jwks.
This PR is more for a discussion, maybe we should use a different fetch implementation for this purpose. I've checked it and JwksClient uses node http or https agent.