Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module 3 - req.user is undefined #23

Open
KoenMorren opened this issue Apr 20, 2016 · 1 comment
Open

Module 3 - req.user is undefined #23

KoenMorren opened this issue Apr 20, 2016 · 1 comment

Comments

@KoenMorren
Copy link

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!

@robaxelsen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants