passport-jwt
passport-jwt copied to clipboard
lib/strategy: Add failWithError support
The failWithError option tells the strategy to not fail but pass instead when authentication fails. This commit makes passport-jwt respect this setting.
Passport already handles failWithError
quite well and strategy.pass
has nothing to do with it. This is just wrong.
Could you elaborate on your idea, as I currently agree with the rest of the comments.