The express-jwt package allows tremendous flexibility in creating multiple authentication options on login( i.e. local storage or social media OAuth or OpenID providers, etc. ) and then protecting the application with JWT.
The express-jwt configuration in particular i.e.
app.use(expressJwt({ secret: jwtSecret}).unless({path:['/login']}));
shows the way.
The question is: many of the sites I want to use for login alternatives are most easily accessed through passport.js. Passport-jwt seems to use the jsonwebtokens.js module under the hood so is there a way of configuring passport-jwt with the same flexibility that can be obtained with jsonwebtokens.js and express-jwt.js individually?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With