-
Notifications
You must be signed in to change notification settings - Fork 18
fix: readme #342
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: readme #342
Conversation
README.md
Outdated
@@ -41,7 +43,7 @@ const getJwks = buildGetJwks({ | |||
- `checkIssuer`: Optional user defined function to validate a token's domain. | |||
- `providerDiscovery`: Indicates if the Provider Configuration Information is used to automatically get the jwks_uri from the [OpenID Provider Discovery Endpoint](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig). This endpoint is exposing the [Provider Metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). With this flag set to true the domain will be treated as the OpenID Issuer which is the iss property in the token. Defaults to false. Ignored if jwksPath is specified. | |||
- `jwksPath`: Specify a relative path to the jwks_uri. Example `/otherdir/jwks.json`. Takes precedence over providerDiscovery. Optional. | |||
- `agent`: The custom agent to use for requests, as specified in [node-fetch documentation](https://github.com/node-fetch/node-fetch#custom-agent). Defaults to `null`. | |||
- `fetchOptions`: The custom [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit) used to instrument `fetch`. Optional. |
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.
are we sure that these are the ones that we should be referring to? aren't they those accepted by Undici, which while compliant with the standard (I believe) actually accepts different options?
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.
Undici accepts more parameters (like the dispatcher), with are not available in plain fetch
At the moment, we are using plain fetch provided by nodejs, which is compliant with the linked RequestInit
Can you please add a types test which confirms that we can pass a Node-specific option to fetchOptions? |
This should address an issue raised in #341
Resolves #341