I\'m New to node js. I\'m using passport jwt for authentication. When i tried to authenticate, its always showing \"unauthorized\".
my passport.js file
I found out the issue, In new passport-jwt updates, we have to use
opts.jwtFromRequest = ExtractJwt.fromAuthHeaderWithScheme('jwt');