Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jwt strategy

app.post('/profile', passport.authenticate('jwt', { session: false }),
    function(req, res) {
        res.send(req.user.profile);
    }
);
Source by www.passportjs.org #
 
PREVIOUS NEXT
Tagged: #jwt #strategy
ADD COMMENT
Topic
Name
7+1 =