omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

"social_auth_usersocialauth.user_id" didn't match "auth_user.id" #1091

Open wowkin2 opened 7 years ago

wowkin2 commented 7 years ago

In my django application I have 2 tables: auth_user and social_auth_usersocialauth. And the problem is in that the same user has different ids in these tables (auth_user.id and social_auth_usersocialauth.user_id). So I got a problem when I wanted to figure out who is 2000th user on my site, each collection has it's own object with id = 2000.

Which of them is more reliable? The only option to register user was social auth backend.