-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Inserting new record on every login. issue not fixed yet server:oauth mongoose validation when re-login using twitter oauth #1851 #1883
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
Comments
|
Twitter does not give email in response |
Kindly check twitter response first than remove check. |
So that bit of code you mentioned was recently added to the generator to address that issue of twitter not giving an email address, but what's happening now is that every time someone logs in with twitter it will create a new user? That's the point of this line; it checks if there's already a user with that twitter ID. Do you know why that check wouldn't pass? |
that check wouldn't pass because twitter id is saved as Int32 in mongo while that line in passport performs string matching. |
thats why i have used parseInt |
We want to make sure that the ID is saved as a string. In the beginning of the twitter passport setup, try making sure that |
Ok that can also be done. |
When i added that line
in user.model it remove that error
but it stores another record in database so this will populate my db on every twitter login with a new record.
The text was updated successfully, but these errors were encountered: