hwz/chirp

Module 3 - req.user is undefined

KoenMorren opened this issue · 1 comments

I'm currently having an issue with the fact that in my success and failure routes, the req.user property is undefined.

Also, I was trying to use the info property on the done-method (from passport), but req.authInfo is also undefined.

It seems that passport isn't updating the req-variable.

Any idea what the problem here could be?

Thanks!

I just had the same issue.

For me, what solved it was a user[username] instead of users[username] typo on about line 47 in passport-init.js. Check to see if you have similar misspellings somewhere.