1.1.13 • Published 1 year ago

fastify-authz-jwks v1.1.13

Weekly downloads
226
License
MIT
Repository
github
Last release
1 year ago

fastify-authz-secret-provider

Auth0 secret provider integration through jwks-rsa in Fastify.

Install

$ npm install -S fastify-authz-jwks

Usage:

const fastifySecretProvider = require('fastify-authz-jwks');
const fastifyJwt = require('fastify-jwt');

fastify.register(fastifyJwt, {
  secret: fastifySecretProvider({
    cache: true,
    rateLimit: true,
    jwksRequestsPerMinute: 5,
    jwksUri: 'https://__tenant__.auth0.com/.well-known/jwks.json',
  }),
  audience: 'https://api.example.com',
  issuer: 'https://__tenant__.auth0.com/',
  algorithms: ['RS256'],
  decode: { complete: true },
});

Motivation

A PR created on Auth0's GitHub has gone stale waiting for review on this integration, so I've created this fork to avoid further manual implementations 🚀

1.1.13

1 year ago

1.1.12

3 years ago

1.1.11

4 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago