# Gmail and Auth account generate 2 different accounts

**URL:** <https://community.auth0.com/t/gmail-and-auth-account-generate-2-different-accounts/8938>\
**Category:** Get Help\
**Tags:** account-linking\
**Created:** [December 11, 2017, 3:12am UTC](https://community.auth0.com/t/gmail-and-auth-account-generate-2-different-accounts/8938 "2017-12-11T03:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ran.naot](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ran.naot](https://community.auth0.com/u/ran.naot)\
**Post date:** [December 11, 2017, 3:12am UTC](https://community.auth0.com/t/gmail-and-auth-account-generate-2-different-accounts/8938/1 "2017-12-11T03:12:46Z")

</div>

I logged in to my site with a test user providing a user and a password, verified the email as gmail account. For the coming days, auth0 recognize I was logged in and I am able to login with my gmail account.

Few days passes, I try to login again, I am not recognized and when I try to login with my gmail account it sees this as a different user.

If I look at my user dashboard I now sees 2 users, the first the logged with a user/name password and the second user with the google open id token. Both has the same email… this is the same user…

How can I solve this?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 11, 2017, 11:49pm UTC](https://community.auth0.com/t/gmail-and-auth-account-generate-2-different-accounts/8938/2 "2017-12-11T23:49:56Z")

</div>

The behavior you describe between a user identity associated with a database connection (service specific username/email and password credentials) and a user identity associated with Google social credentials **is the expected one**.

By default the user identities are independent and treated as different users even if they happen to be used by the same person (same email address even). If you want your application to allow username/email and password credentials alongside social providers **while still treating users with the same verified email address as one identity then you need to perform [account linking](https://auth0.com/docs/link-accounts)**. See the reference documentation for additional information, but if you scenario revolves around automatic account linking for identities that have the same **verified** email address then you can accomplish that through a rule (check the available templates).

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/gmail-and-auth-account-generate-2-different-accounts/8938/3 "2018-03-02T05:57:43Z")

</div>


