mikenicholson / passport-jwt

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

Error objects should not be passed to Strategy.fail() #210

Open mikenicholson opened 4 years ago

mikenicholson commented 4 years ago

See latest discussion in #160.

This comment raises a valid point. Rather than passing instances of Error, we should be passing strings to Strategy.fail().

https://github.com/mikenicholson/passport-jwt/issues/160#issuecomment-544072088