passport-jwtr
A Passport strategy for authenticating with a JSON Web Token.
This module lets you authenticate endpoints using a JSON web token. It is intended to be used to secure RESTful endpoints without sessions.
Installation
Npm
npm install passport-jwtr
Yarn
yarn add passport-jwtr
Support
This library is quite fresh, and maybe has bugs. Write me an email to natashkinsash@gmail.com and I will fix the bug in a few working days.
Quick start
var JwtrStrategy = Strategy ExtractJwt = ExtractJwt;var Redis = ;var opts = {}optsjwtFromRequest = ExtractJwt;optssecretOrKey = 'secret';optsredis = ;passport;