I am using django social auth for social login. If a user signs up using gmail id, on his next visit logins using gmail social login, then two users are created for the same user with different username but same email id. Now when user tries login using this gmail id, MultipleObjectsReturned error is thrown.
Is there any way to check the email id of a user when logging, if it already exists associate it with the that user.
You may have to show what PIPELINE you provide in your
settings.py
file.But thing answer is :
Include in settings like
'social_auth.backends.pipeline.associate.associate_by_email',