mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.96k stars 213 forks source link

Is something wrong with jsonwebtoken 8.2.0 #168

Closed ashinzekene closed 5 years ago

ashinzekene commented 5 years ago

I have had issues with authorization using this package. I was so frustrated I had to check the code and add logs. Here, I modified extract_jwt.js to

var jwt = require('jsonwebtoken');

module.exports  = function(token, secretOrKey, options, callback) {
    return jwt.verify(token, secretOrKey, options, (err, res) => {
        console.log(options.issuer);
        console.log(err.message, res)
        callback(err, res);
    });
};

I get this from the console

send_te_app
jwt issuer invalid. expected: send_te_app undefined

Is anyother person facing this issue

mikenicholson commented 5 years ago

Closing as this is not an issue with this package.