Linking to a different existing parent user while registering with google account #1092
Unanswered
merjekrepo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've come a strange issue with the social_django app. I've integrated the Google authentication and when a new user registers the system, he/she is being linked to an existing user in the auth_user table.
Here is the social_auth_usersocialauth table that includes the foreign user_id.

Here is the auth_user table which includes the parent user ids:

The migration went successfull and it generated all tables successfully.
Here is my JavaScript code:
The user with the id 11 in the social_auth_usersocialauth table is a different person and should not be linking to the user_id 9! Instead it should first create that user in the auth_user table and then add that user (linking) in the social_auth_usersocialauth table. It mostly works that way but sometimes causing this strange issue; i.e. linking to a different and existing user in the auth_user table. Any ideas what is happening?
Beta Was this translation helpful? Give feedback.
All reactions