Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwks-rsa

Package Overview
Dependencies
Maintainers
42
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwks-rsa - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

7

CHANGELOG.md
# 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**

4

index.d.ts

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc