# Changelog ## [1.12.3] - (2021-02-25) **Added** - Add alg to SigningKey types [\#220](https://github.com/auth0/node-jwks-rsa/pull/220) ([okko](https://github.com/okko)) **Fixed** - Fix npmjs resolves [\#221](https://github.com/auth0/node-jwks-rsa/pull/221) ([adamjmcgrath](https://github.com/adamjmcgrath)) - Fix Import default Axios instance [\#216](https://github.com/auth0/node-jwks-rsa/pull/216) ([dsebastien](https://github.com/dsebastien)) ## [1.12.2] - (2021-01-07) **Fixed** - Added coverage folders to .npmignore ## [1.12.1] - (2020-12-29) **Security** - Bump Axios to ^0.21.1 [\#208](https://github.com/auth0/node-jwks-rsa/pull/208) ([72636c](https://github.com/72636c)) ## [1.12.0] - (2020-12-08) **Added** - Provide an alternative source for supplying keysets [\#202](https://github.com/auth0/node-jwks-rsa/pull/202) ([davidpatrick](https://github.com/davidpatrick)) **Deprecation** We are deprecating passing in a `jwksObject` to the client for reasons laid out in [\#202](https://github.com/auth0/node-jwks-rsa/pull/202). In order to load keys from anything other than the `jwksUri`, please use the `getKeysInterceptor`. ```js 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); } }); ``` ## [1.11.0] - (2020-10-23) **Added** - Add ability to configure proxy with env vars [\#188](https://github.com/auth0/node-jwks-rsa/pull/188) ([lubomir-haralampiev](https://github.com/lubomir-haralampiev)) ## [1.10.1] - (2020-09-24) **Fixed** - fix proxy agent for http [\#182](https://github.com/auth0/node-jwks-rsa/pull/182) ([NShahri](https://github.com/NShahri)) - fix dependencies for --production flag with npm [\#180](https://github.com/auth0/node-jwks-rsa/pull/180) ([alexrqs](https://github.com/alexrqs)) ## [1.10.0] - (2020-09-23) **Added** - getSigningKeys return algorithm [\#168](https://github.com/auth0/node-jwks-rsa/pull/168) ([moander](https://github.com/moander)) **Fixed** - Add missing async methods to Typescript type definitions [\#163](https://github.com/auth0/node-jwks-rsa/pull/163) ([mwgamble](https://github.com/mwgamble)) - Fixing proxy on Axios [\#176](https://github.com/auth0/node-jwks-rsa/pull/176) ([davidpatrick](https://github.com/davidpatrick)) - Fix caching and rateLimiting on getSigningKeyAsync [\#177](https://github.com/auth0/node-jwks-rsa/pull/177) ([davidpatrick](https://github.com/davidpatrick)) ## [1.9.0] - (2020-08-18) **Added** - Add promisified methods to JwksClient [\#161](https://github.com/auth0/node-jwks-rsa/pull/161) ([jimmyjames](https://github.com/jimmyjames)) - Update express-jwt ^6.0.0 [\#157](https://github.com/auth0/node-jwks-rsa/pull/157) ([davidpatrick](https://github.com/davidpatrick)) **Fixed** - Update Buffer initialization to non-deprecated method [\#154](https://github.com/auth0/node-jwks-rsa/pull/154) ([cwardcode](https://github.com/cwardcode)) - Use axios url parameter instead of baseURL [\#153](https://github.com/auth0/node-jwks-rsa/pull/153) ([novascreen](https://github.com/novascreen)) **Security** - Bump lodash from 4.17.15 to 4.17.19 [\#152](https://github.com/auth0/node-jwks ## [1.8.1] - (2020-06-18) **Fixed** - Fix #139 strictSsl: false option being ignored [\#146](https://github.com/auth0/node-jwks-rsa/pull/146) ([kopancek](https://github.com/kopancek)) **Security** - Update dependencies to latest [\#147](https://github.com/auth0/node-jwks-rsa/pull/147) ([lbalmaceda](https://github.com/lbalmaceda)) ## [1.8.0] - (2020-04-12) **Added** - Added timeout with default value of 30s [\#132](https://github.com/auth0/node-jwks-rsa/pull/132) ([Cooke](https://github.com/Cooke)) **Changed** - Migrate from Deprecated Request Lib [\#135](https://github.com/auth0/node-jwks-rsa/pull/135) ([davidpatrick](https://github.com/davidpatrick)) **Fixed** - Allow JWT to not contain a "kid" value[\#55](https://github.com/auth0/node-jwks-rsa/pull/55) ([dejan9393](https://github.com/dejan9393)) ## [1.7.0] - (2020-02-18) This release includes a change to the default caching mechanism. Caching is on now by default, with the decrease of the default time of 10hours to 10minutes. This change introduces better support for signing key rotation. **Added** - Add proxy option to jwksClient [\#125](https://github.com/auth0/node-jwks-rsa/pull/125) ([Ogdentrod](https://github.com/Ogdentrod)) **Changed** - [SDK-1221] Modify Cache Defaults [\#123](https://github.com/auth0/node-jwks-rsa/pull/123) ([davidpatrick](https://github.com/davidpatrick)) **Fixed** - Add Linter step to CI [\#129](https://github.com/auth0/node-jwks-rsa/pull/129) ([davidpatrick](https://github.com/davidpatrick)) - Send the explicit commit SHA to Codecov [\#128](https://github.com/auth0/node-jwks-rsa/pull/128) ([lbalmaceda](https://github.com/lbalmaceda)) ## [1.6.2] - (2020-01-21) This patch release includes an alias for accessing the public key of a given JSON Web Key (JWK). This is in response to an unintended breaking change that was introduced as part of the last Typescript definitions change, included in the release with version `1.6.0`. Now, no matter what the public key algorithm is, you can obtain it like this: ```js client.getSigningKey(kid, (err, jwk) => { const publicKey = jwk.getPublicKey(); }); ``` **Fixed** - Add alias for obtaining the public key [\#119](https://github.com/auth0/node-jwks-rsa/pull/119) ([lbalmaceda](https://github.com/lbalmaceda)) - Handling case when Jwk doesn't have 'use' parameter [\#116](https://github.com/auth0/node-jwks-rsa/pull/116) ([manpreet-compro](https://github.com/manpreet-compro)) ## [1.6.1] - (2020-01-13) **Changed** - NPM dependencies update [\#112](https://github.com/auth0/node-jwks-rsa/pull/112) ([ecasilla](https://github.com/ecasilla)) - Update lru-memoizer to 2.0.1 [\#106](https://github.com/auth0/node-jwks-rsa/pull/106) ([sobil](https://github.com/sobil)) ## [1.6.0] - (2019-07-09) **Added** - Add `agentOptions` to customize `request` [TLS/SSL options](https://www.npmjs.com/package/request#using-optionsagentoptions). https://github.com/auth0/node-jwks-rsa/pull/84 ## [1.5.1] - (2019-05-21) **Changed** - Now includes the jsonwebtoken as a runtime dependency not dev to avoid breaks with 1.5.0 installs - Various dependencies in both the library and samples updated ## [1.5.0] - (2019-05-09) **Added** - Integrate with passport-jwt [\#77](https://github.com/auth0/node-jwks-rsa/pull/27) ([gconnolly](https://github.com/gconnolly)) ## [1.4.0] - (2019-02-07) **Added** - Allow custom headers in request [\#77](https://github.com/auth0/node-jwks-rsa/pull/77) ([Mutmatt](https://github.com/Mutmatt)) ## [1.3.0] - (2018-06-20) **Added** - Adding support for hapi 17.x.x [\#38](https://github.com/auth0/node-jwks-rsa/pull/38) ([degrammer](https://github.com/degrammer)) **Fixed** - Fixing wrong error message [\#41](https://github.com/auth0/node-jwks-rsa/pull/41) ([adematte](https://github.com/adematte)) ## [1.2.1] - 2017-10-19 ### Changed - Fixed TypeScript definition ## [1.2.0] - 2017-06-27 ### Added - Koa integration ### Changed - `ms` updated to v2.0.0