passport-jwt icon indicating copy to clipboard operation
passport-jwt copied to clipboard

lib/strategy: Add failWithError support

Open emdemir opened this issue 3 years ago • 2 comments

The failWithError option tells the strategy to not fail but pass instead when authentication fails. This commit makes passport-jwt respect this setting.

emdemir avatar Feb 27 '21 21:02 emdemir

Passport already handles failWithError quite well and strategy.pass has nothing to do with it. This is just wrong.

canslaughter avatar Aug 23 '22 02:08 canslaughter

Could you elaborate on your idea, as I currently agree with the rest of the comments.

Outternet avatar Sep 09 '22 17:09 Outternet