Comparing version 2.0.1 to 2.0.2
# Changelog | ||
## [2.0.2] - (2021-03-24) | ||
**Fixed** | ||
- Interceptor bind client [\#237](https://github.com/auth0/node-jwks-rsa/pull/237) ([erikfried](https://github.com/erikfried)) | ||
- Update type def for getSigningKey [\#236](https://github.com/auth0/node-jwks-rsa/pull/236) ([davidpatrick](https://github.com/davidpatrick)) | ||
- Use hostname instead of host when creating request [\#233](https://github.com/auth0/node-jwks-rsa/pull/233) ([cjlpowers](https://github.com/cjlpowers)) | ||
## [2.0.1] - (2021-03-12) | ||
@@ -3,0 +10,0 @@ **Added** |
@@ -13,4 +13,4 @@ import { SecretCallback, SecretCallbackLong } from 'express-jwt'; | ||
getSigningKeys(): Promise<SigningKey[]>; | ||
getSigningKey(kid: string): Promise<SigningKey>; | ||
getSigningKey(kid: string, cb: (err: Error | null, key: SigningKey) => void): void; | ||
getSigningKey(kid?: string | null | undefined): Promise<SigningKey>; | ||
getSigningKey(kid: string | null | undefined, cb: (err: Error | null, key: SigningKey) => void): void; | ||
} | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "jwks-rsa", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Library to retrieve RSA public keys from a JWKS endpoint", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,3 +8,3 @@ const retrieveSigningKeys = require('../utils').retrieveSigningKeys; | ||
function getKeysInterceptor(client, { getKeysInterceptor } = options) { | ||
const getSigningKey = client.getSigningKey; | ||
const getSigningKey = client.getSigningKey.bind(client); | ||
@@ -11,0 +11,0 @@ return async (kid) => { |
@@ -12,3 +12,3 @@ const http = require('http'); | ||
const { | ||
host, | ||
hostname, | ||
path, | ||
@@ -20,3 +20,3 @@ port, | ||
const requestOptions = { | ||
host, | ||
hostname, | ||
path, | ||
@@ -23,0 +23,0 @@ port, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38899