Паспорт JWT NPM
npm install passport-jwt
new JwtStrategy(options, verify)
Combative Crane
npm install passport-jwt
new JwtStrategy(options, verify)
app.post('/profile', passport.authenticate('jwt', { session: false }),
function(req, res) {
res.send(req.user.profile);
}
);
npm install passport-jwt