Click here to Skip to main content
15,611,367 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to associate user with multiple social accounts in Django Rest Framework.
After user login, user can associate with social accounts (it doesn't matter same email or different email).
Now I am using the library [drf-social-oauth2]
I have done signIn/singUp part. According to [Social_Auth_Pipeline], I added this code to associate user

The endpoint "http://localhost:8000/auth/convert-token" can handle the singin/singup using social auth.(eg. Facebook, Google)

social_core.pipeline.social_auth.associate_by_email managed to associate the user if same email.

What I have tried:

My Question is
How can I connect/associate Social Accounts (* different email/same email) with current login user using drf_social_oauth2?

Do I need to add field in user table to associate? OR Do I need to add something to
Please advise me.
Thank you.
Updated 26-Oct-22 17:57pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900