jwt passport code example
Example 1: jwt strategy
app.post('/profile', passport.authenticate('jwt', { session: false }),
function(req, res) {
res.send(req.user.profile);
}
);
Example 2: passport jwt npm
npm install passport-jwt
new JwtStrategy(options, verify)