Checklist
Description
When setting a custom fetcher via the options' fetcher property, the jwksUri option is not needed. Right now, jwksUri is not optional, so this raises a TS error.
Reproduction
const expressJwt = jwksClient.expressJwtSecret({
jwksUri: undefined!, // Look how I had to add (!) to suppress the TS error
fetcher: () => getAzureKeys(),
cache: true,
rateLimit: false,
});
Additional context
No response
jwks-rsa version
3.2.0
Node.js version
22
Checklist
Description
When setting a custom fetcher via the options'
fetcherproperty, thejwksUrioption is not needed. Right now,jwksUriis not optional, so this raises a TS error.Reproduction
Additional context
No response
jwks-rsa version
3.2.0
Node.js version
22