restify-jwt-auth-next
Lightweight JWT middleware for restify.
Installation
npm install --save restify-jwt-auth-next
Usage
const restify = const jwtAuth = var restify = restify let { return res} let options = secret: 'jwtsecret' blacklist: // blacklist routes like '/noaccess', will always return handler whitelist: // whitelist routes like '/immediate', no auth needed handler: handler // default is redirect as above. Will send a 302 and the login route server // protected routeserver server
Credits
License
MIT