I added Google Social Login to my app and did all the configuration on auth0 and google console, creating the application and added the client secret to my auth0 configuration.
i’m also using a custom login page
when i log in with google, even though my account exists with the mail it creates a new account in auth0 instead of logging with my already existing account.
Hi @ghassen.melliti,
Welcome to the Auth0 Community!
Can you clarify if the social user exists in Auth0 prior to logging in?
Let me add that it should not be possible to create duplicate social connection users.
Generally, if this is your first time logging in with the Google social connection, it will create a Google social connection user in Auth0.
Thanks,
Rueben
yes the user existed prior to login with google, and when i logged in with google it created a new account with the same email.
Hi @ghassen.melliti,
Can you confirm whether it will continuously create new users if you repeat this process?
In general, this should not happen.
I suspect you may have a username + password user and a Google social user with the same email address. Can you confirm if the connection
of both users is the same or different?
Thanks,
Rueben
it won’t, it just create a new user once then connects to that user when you use google login, and not the same connection as the already existing account.
Hi @ghassen.melliti,
Thanks for the information.
Could you please send me a direct message of a user’s email address that was created twice?
This way, I can view their user profiles and associate them with logs to see what might be happening.
Thanks,
Rueben
hello,
i’ve sent you a direct message as requested.
Hello Rueben,
i’ve sent you the requested information and still waiting for your response,
we are still having the same issue and its critical for us to get it fixed.
Thank you,
Hi @ghassen.melliti,
My apologies for the late reply.
I’ve gotten a chance to inspect the user in question that you shared with me through direct messages, and I see that the user has 2 separate profiles, specifically one for google-oauth2 connection and one for Username-Password-Authentication in your dev tenant.
There is uniquely one of each type of connection user, meaning I do not see any indication of a duped profile.
This is consistent with my previous message justifying that you have an email + password user and a Google social user with the same email address.
So, in this situation, you can log in with either your email + password or Google social account. Both are separate user profiles associated with different connections.
Thanks,
Rueben
Hello rueben,
i don’t fully understand, its normal for me when i had a user with my email then made a google login with the same email for it to create a new user in the tenant?
then also when i try to google login it doesn’t use the information of my account which causes issues.
Hi @ghassen.melliti,
Yes, that’s correct. If you previously created your profile using email + password and then tried to log in with Google, it will create a new user for the Google user.
That’s also correct. The information associated with your Google social user is kept separate from your original user profile in the database connection.
Thanks,
Rueben
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.