passport-thinkful
Thinkful's authentication strategy for Passport.
This module authenticates requests intended for Thinkful services. It wraps http-passport-bearer with a JWT verification step.
Install
$ npm install passport-thinkful
Usage
Configure Strategy
passport;
Authenticate Requests
Use passport.authenticate('thinkful')
to authenticate requests. JWT authorization tokens negate the need for sessions, so the session
option should be set to false
.
An Express route middleware example:
app;