Express JWT

JS
S
JavaScript

Snippet for use with ExpressJWT

1    this.app.use(expressJwt({secret: process.env.JWT_SECRET}).unless(
2      {
3        path: ['/health', '/', '/ ', /\/public*/],
4        ext: ['js', 'css', 'ico', 'woff', 'woff2', 'ttf']
5      }
6    ));

Created on 9/16/2019