npm jwks-rsa 1.12.0

latest releases: 3.1.0, 3.0.1, 3.0.0...
3 years ago

Added

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);
    }
  });

Don't miss a new jwks-rsa release

NewReleases is sending notifications on new releases.