mikenicholson / passport-jwt

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

Fix verifyFunction's Parameters #85

Closed Sascha8a closed 7 years ago

Sascha8a commented 7 years ago

The verifyFunction provides 3 parameters, not two. The first beeing the request, the second the payload and the third the usual callback.

mikenicholson commented 7 years ago

Actually the example looks like it is correct.

The request is only passed to the callback when the passReqToCallback option is true. By default passReqToCallback is false. In the README, passReqToCallback is not set to true.

Closing since merging this would make the documentation incorrect.