I hope you’re all well.
We’re currently using Auth0 on our platform, and we’ve run into an issue where users who initially sign up using one identity provider (e.g., Google) encounter errors when later attempting to log in using another method (e.g., email/password) with the same email address.
The error message received is:
“There was a problem with your login: There is a user with the same email. [error code: unknown]”
We understand that Auth0 treats these as separate identities and does not automatically link them by default. However, we would like to streamline the user experience by automatically linking accounts that share the same verified email address.
Specifically, we would appreciate help with the following:
- Confirming the safest and recommended approach to automatically link user accounts across different identity providers (e.g., Google and Auth0 database) when the emails match.
- Clarifying any risks or best practices we should consider to avoid accidental or malicious account merging.
- Guidance on implementing this solution via Actions or Rules, including how to correctly authenticate the Management API for account linking.
- Whether there are any built-in Auth0 configurations or roadmap features that would support this use case more directly in the future.
Our use case is relatively straightforward: we want users to be able to log in with any previously used method without running into duplicate account errors.
Thank you in advance for your guidance and support. Please let us know if you need any additional information about our tenant or setup..