Skip to content

1.12.0

Compare
Choose a tag to compare
@davidpatrick davidpatrick released this 08 Dec 22:36
· 213 commits to master since this release
26d760b

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