Answer the question
In order to leave comments, you need to log in
Header in passport-jwt?
Good day. There is a very good library for working with the jwt token.
I generated it on the server, ok. When I try to write in the title, he does not see it, apparently I am not composing the title in the right way.
Current example:
var opts = {
jwtFromRequest: ExtractJwt.fromHeader('Authfield'),
secretOrKey: config.secret_jwt
}
passport.use(new JwtStrategy(opts, function(jwt_payload, done) {
console.log(jwt_payload);
next(null, false);
}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question