Unable to Process Auth0 Flow with Google Login and Email/Password for the Same User

I’m trying to implement an Auth0 flow where a user can log in using either Google Login or their email/password. I am using a single API for this flow, but I’m facing issues when trying to authenticate the same user through both methods.

I’m not sure how to handle linking or synchronizing login methods for the same account.

Has anyone faced a similar issue, or can someone guide me on how to configure Auth0 to allow both Google OAuth and email/password login for the same user?

Hi,
You will want to use the predefined rule called “Link Accounts with Same Email Address while Merging Metadata” that you can use under Dashboard > Rules > Create Rule. This will automatically merge user accounts if they have the same verified email address

Hi @Dhawal

Welcome to the Auth0 Community!

Thank you for posting your question; we have full documentation regarding account linking, both user-initiated and server-initiated. You can read the whole documentation here: User Account Linking. If you need any more details or have additional questions, feel free to ask!

Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.