SHARE
TWEET

Untitled

a guest Sep 17th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export class JwtStrategy extends PassportStrategy(Strategy) {
  2.  
  3.   private readonly logger = new Logger(JwtStrategy.name);
  4.  
  5.   constructor() {
  6.     super({
  7.       secretOrKeyProvider: passportJwtSecret({
  8.         cache: true,
  9.         rateLimit: true,
  10.         jwksRequestsPerMinute: 5,
  11.         jwksUri: `https://${process.env.AUTH0_DOMAIN}/.well-known/jwks.json`,
  12.       }),
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top