# 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 

**URL:** <https://community.auth0.com/t/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/189344>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [July 17, 2025, 9:32pm UTC](https://community.auth0.com/t/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/189344 "2025-07-17T21:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gavin1/32/72706_2.png) [@gavin1](https://community.auth0.com/u/gavin1)\
**Post date:** [July 17, 2025, 9:32pm UTC](https://community.auth0.com/t/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/189344/1 "2025-07-17T21:32:47Z")

</div>

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:

1. **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.
2. **Clarifying any risks or best practices** we should consider to avoid accidental or malicious account merging.
3. Guidance on implementing this solution via **Actions or Rules** , including how to correctly authenticate the Management API for account linking.
4. 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..

---

<div class="post-metadata">

**Author:** ![Tiffani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tiffani/32/75235_2.png) [@Tiffani](https://community.auth0.com/u/Tiffani)\
**Post date:** [July 30, 2025, 11:54pm UTC](https://community.auth0.com/t/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/189344/3 "2025-07-30T23:54:47Z")

</div>

Hi @gavin1 our team is still working in the background. A member of our Auth0 certified community engineering team will help you from here. cc @dawid.matuszczyk

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 31, 2025, 4:56pm UTC](https://community.auth0.com/t/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/189344/4 "2025-07-31T16:56:05Z")

</div>

Hi @gavin1

Welcome to the Auth0 Community!

Thank you for posting your question. The Post‑Login Action that links **only when both identities have the same, verified e‑mail** and come from trusted IdPs is the recommended approach that we can propose at this time for the account linking. The high-level overview you find under this link → [https://auth0.com/docs/manage-users/user-accounts/user-account-linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking), and if you want the check the use case on the client-side implementation you can find it here → [https://auth0.com/docs/manage-users/user-accounts/user-account-linking/user-initiated-account-linking-client-side-implementation](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/user-initiated-account-linking-client-side-implementation). You can find the code snippet for the action in the Action Templates Library → [https://auth0.com/docs/customize/actions/actions-templates](https://auth0.com/docs/customize/actions/actions-templates)

In terms of the precautions, for both manual and automatic account links, your tenant should request authentication for **both** accounts before linking occurs.

In addition, **every** manual account link should prompt the user to enter credentials.

Additional Sources:

- [Account Linking Using Post-Login Actions](https://community.auth0.com/t/account-linking-using-post-login-actions/90162)
- [Account Linking Considerations for Email Case Sensitivity](https://community.auth0.com/t/account-linking-considerations-for-email-case-sensitivity/116310)
- [How to Implement Client-Side User Initiated Account Linking](https://community.auth0.com/t/how-to-implement-client-side-user-initiated-account-linking/81199)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 14, 2025, 4:56pm UTC](https://community.auth0.com/t/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/189344/5 "2025-08-14T16:56:30Z")

</div>

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