1.12.0
Added
- Provide an alternative source for supplying keysets #292 (davidpatrick)
Deprecation
We are deprecating passing in a jwksObject
to the client for reasons laid out in #292. In order to load keys from anything other than the jwksUri
, please use the getKeysInterceptor
.
const client = new JwksClient({
jwksUri: 'https://my-enterprise-id-provider/.well-known/jwks.json',
getKeysInterceptor: (cb) => {
const file = fs.readFileSync(jwksFile);
return cb(null, file.keys);
}
});