Open emdemir opened 3 years ago
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.
failWithError
strategy.pass
Could you elaborate on your idea, as I currently agree with the rest of the comments.
The failWithError option tells the strategy to not fail but pass instead when authentication fails. This commit makes passport-jwt respect this setting.