3.1.0 ā€¢ Published 7 months ago

jwks-rsa v3.1.0

Weekly downloads
721,863
License
MIT
Repository
github
Last release
7 months ago

A library to retrieve signing keys from a JWKS (JSON Web Key Set) endpoint.

Release Codecov Downloads License CircleCI

šŸ“š Documentation - šŸš€ Getting Started - šŸ’¬ Feedback

Documentation

  • Examples - documentation of the options and code samples for common scenarios.
  • Docs Site - explore our Docs site and learn more about Auth0.

Getting Started

Installation

Using npm in your project directory run the following command:

npm install --save jwks-rsa

Supports all currently registered JWK types and JWS Algorithms, see panva/jose#262 for more information.

Configure the client

Provide a JWKS endpoint which exposes your signing keys.

const jwksClient = require('jwks-rsa');

const client = jwksClient({
  jwksUri: 'https://sandrino.auth0.com/.well-known/jwks.json',
  requestHeaders: {}, // Optional
  timeout: 30000 // Defaults to 30s
});

Retrieve a key

Then use getSigningKey to retrieve a signing key that matches a specific kid.

const kid = 'RkI5MjI5OUY5ODc1N0Q4QzM0OUYzNkVGMTJDOUEzQkFCOTU3NjE2Rg';
const key = await client.getSigningKey(kid);
const signingKey = key.getPublicKey();

Feedback

Contributing

We appreciate feedback and contribution to this repo! Before you get started, please see the following:

Raise an issue

To provide feedback or report a bug, please raise an issue on our issue tracker.

Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

What is Auth0?

@wemystic/extrafields-client@wemystic/extrafields-tmp-client@wemystic/profiler-client@articulate/authentic@envelop/auth0@atlas-engine/fullstack_server@redwoodjs/auth-supertokens-api@redwoodjs/auth-azure-active-directory-api@redwoodjs/auth-auth0-api@easy-express/auth0dotclub-admin-web-backendsimple-auth0-wrappernode-lambda-oauth2-jwt-jwks-authorizersignage-next-graphql@abc2d/nestjs-authrentalainen-api@shindiogo/coretekoid-nodejs-testfoodcoach-training-serviceredapple-api-rewritedigibuild-gtt-backend@pawlution/pawlution-javascript-packageacr-corelec-multitenant-apitimeless-invest-apivendor-enquiry-api@yesodco/express-auth@golee/authlib-nestcontact-app-typescript@faable/fservtalent-acquisition-apihomebridge-plugin-garageventaja-bill-paymentventaja-bill-payments@digitsole/blackburn-authcms-keystoneservice-task@uchihayuki/express-iam@opensesame/course-authoring-library-service-request@ovotech/identity-authkatana-lb4-mw@hastearcade/haste@hastearcade/haste-web@giraphy/giraphy@cranburi/cranburi-aws@glassbiller/gb-oauth-api@lanetix/lxt@lanetix/microserviceexpress-ts-boilerplateberje-auth0-api@you54f/aws-apigw-authorizertaf-auth@airboat/router@leapllc/parse-servergn-server@hopara/http-serverao-vessel-mgmt-apicommandlogautoapprove.titles@sergiorivera/create-ned-boilerplatetitles-workflow-server@golee/authlibv2@placeshakr/api-server@blockware/web-microfrontendlivesearch-service@datntoc/shared@ocgc/sharednestjs-jwtrent-on-the-spot-frontendparse-servertypes-kohort@everything-registry/sub-chunk-1997@petbee/nestjs-auth0-coreparse-server-cloud-logging-mod-7alpha.1@dbos-inc/cloud-clioauth2-server-grant-type-appleor-msteamsopenid-cli-usageolymp-auth0oly-node-sdkpambda-jwt-authorizernomad-fb-adminnova-graphqlnpm-auth0-authorizernode-red-contrib-auth-oidcnode-common-toolsnilinswap-st-nodenode-red-contrib-vc-authnode-red-contrib-vc-authorizernode-red-contrib-vc-azureauthpl-claims-hubplatapipitmartonegraph-apollo-server-authoffice-addin-ssoopenapi-connectpontegg.iopodmasterpga-apinode-express-gateway
3.1.0

7 months ago

3.0.1

1 year ago

2.1.5

2 years ago

3.0.0

1 year ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.12.3

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.0

4 years ago

1.10.1

4 years ago

1.10.0

4 years ago

1.9.0

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago