mikenicholson / passport-jwt

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

Token in verify callback issue 155 #159

Closed joshdenz closed 5 years ago

joshdenz commented 6 years ago

Added a new option: 'tokenInVerifyCallback'.

If set to true, the authenticate method will add a property called 'token' to the jwt_payload. The property will contain the raw unparsed jwt token.

I updated the readme to include documentation for the new option, and added a test for the new option.

mikenicholson commented 5 years ago

Based on the discussion in the corresponding issue, I don’t plan to merge this PR.