nest icon indicating copy to clipboard operation
nest copied to clipboard

passport.use(this) doesn't seem to work in Passport example?

Open Zeldaze opened this issue 9 years ago • 2 comments

I am trying to follow Passport integration example, and using Postman, I am getting unauthorized regardless of JWT token present or not. In fact, since our validation returns true all the time, we should not even see unauthorised at all.

When I try and console log from within the validateUser function, it appears not even called at all? e.g. async validateUser(signedUser): Promise { // put some validation logic here // for example query user by id / email / username console.log('Validation logic'); return true; }

Can you test with example for passport and let me know if something changed?

Zeldaze avatar Nov 18 '17 04:11 Zeldaze

Hi @Zeldaze. The same thing is happening to me, what was the solution you found? Thank you in advance!

jpaveggio avatar Feb 16 '18 07:02 jpaveggio

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 25 '19 05:09 lock[bot]