# Allow user to authenticate with password or social logins

**URL:** <https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [May 2, 2023, 12:00am UTC](https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940 "2023-05-02T00:00:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![notronwest](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/notronwest/32/45778_2.png) [@notronwest](https://community.auth0.com/u/notronwest)\
**Post date:** [May 2, 2023, 12:00am UTC](https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940/1 "2023-05-02T00:00:55Z")

</div>

Hi,

New to Auth0. We have the following desired scenario:

1. Create a new user in Auth0
2. Send a user email with link and temporary password
3. Allow user to authenticate with email/temporary password OR Google workspace

In the above scenario when a user uses the temporary password everything works fine. However, when they use the Google Workspace – a new user is created.

We’d like to have the Google Workspace user assume the identity of the created user from step 1.

Have tried everything in a Post Login Action but have been unsuccessful. I can use the hook to search for the email address matching the successful login from Google Workspace but I can’t figure out how to set the found user as the current logged in user.

Any thoughts?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [May 8, 2023, 8:57pm UTC](https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940/2 "2023-05-08T20:57:01Z")

</div>

Hi @notronwest

Welcome to the Auth0 Community.

I would suggest looking into the [Account Linking Extension](https://auth0.com/docs/customize/extensions/account-link-extension) it’s pretty easy to install and setup and you can be up and running in no time. If a user logs into your app via an email address that already exists under another connection then they will be offered to link the accounts which I believe is what you are linking for. There is further information on our Account Linking options here [https://auth0.com/docs/manage-users/user-accounts/user-account-linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking)

Warm regards.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 9, 2023, 10:24am UTC](https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940/3 "2023-05-09T10:24:55Z")

</div>

Thanks for helping on this one @SaqibHussain !

---

<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:** [May 23, 2023, 10:25am UTC](https://community.auth0.com/t/allow-user-to-authenticate-with-password-or-social-logins/105940/4 "2023-05-23T10:25:51Z")

</div>

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