mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.97k stars 214 forks source link

jwt_payload.sub is undefined #80

Closed Shahidbis closed 8 years ago

Shahidbis commented 8 years ago

findOne always returns first record from my DB. When i print jwt_payload.sub in console, it sayd jwt_payload.sub is undefined. can somebody help understanding this?

zombiQWERTY commented 8 years ago

Some issue too. jwtPayload variable from example is smth like this: { iat: 1475587832 }

Shahidbis commented 8 years ago

Fixed it. Thanks for your comment @zombiQWERTY