Skip to content

Instantly share code, notes, and snippets.

@sjensenihi
sjensenihi / authorizer.js
Created April 30, 2018 15:31
custom authorizer
import jwksClient from "jwks-rsa";
import jwt from "jsonwebtoken";
import _ from "lodash";
const jwks = jwksClient({
cache: true,
rateLimit: true,
jwksRequestsPerMinute: 10, // Default value
jwksUri: process.env.JWKS_URI
});