# Social Log in Google users can't change account

**URL:** <https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536>\
**Category:** Get Help\
**Tags:** google, google-signup, auth0\
**Created:** [March 31, 2018, 4:33pm UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536 "2018-03-31T16:33:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariano](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mariano](https://community.auth0.com/u/mariano)\
**Post date:** [March 31, 2018, 4:33pm UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/1 "2018-03-31T16:33:49Z")

</div>

When a user logs in/signs up with google and then sign out, when trying to log in again with google, the user doesn’t get asked what account to log in to, if they were logged to only one google account, but instead, logged in to the site automatically with the account they have just logged out from.

eg

> Auth0 sign up/sign in with google  
> Google account selection  
> Log in authorised  
> Log out from app  
> Log out completed  
> Auth0 Sign in with Google  
> Log in authorised (without asking which account to use for Google log in)

Anyone can help? Thanks

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [April 3, 2018, 4:55am UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/3 "2018-04-03T04:55:04Z")

</div>

👋 @mariano

It could be an issue with clearing the social IDP session. Could you provide the code you are using to logout? Are you calling the [logout endpoint](https://auth0.com/docs/logout)?

Some additional questions that may help, is it just with Google accounts? Are you using Lock?

---

<div class="post-metadata">

**Author:** ![ksilviu.marian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ksilviu.marian/32/5482_2.png) [@ksilviu.marian](https://community.auth0.com/u/ksilviu.marian)\
**Post date:** [April 19, 2018, 2:01pm UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/4 "2018-04-19T14:01:04Z")

</div>

we were just clearing up the localStorage cookies as per the docs provided in the tutorial.

wasn’t aware there’s a logout endpoint to be called.

let me do that and get back

---

<div class="post-metadata">

**Author:** ![ksilviu.marian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ksilviu.marian/32/5482_2.png) [@ksilviu.marian](https://community.auth0.com/u/ksilviu.marian)\
**Post date:** [August 2, 2018, 10:49am UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/5 "2018-08-02T10:49:32Z")

</div>

Okay, there is a problem with returnTo

Both our app’s staging and dev URLs are onto a separate application in the auth0 account  
I’ve setup both as allowed returnTo URLs, but it seems that only dev works. Staging is redirecting to prod after logout.

{domain}/v2/logout?returnTo={dev} → correctly redirects to dev  
{domain}/v2/logout?returnTo={staging} → incorrectly redirects to prod  
{domain}/v2/logout?returnTo={prod} → correctly redirects to prod

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [September 6, 2018, 5:29pm UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/6 "2018-09-06T17:29:13Z")

</div>

@ksilviu.marian were you able to solve your issue with the social login?

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [November 17, 2018, 11:00pm UTC](https://community.auth0.com/t/social-log-in-google-users-cant-change-account/10536/7 "2018-11-17T23:00:01Z")

</div>

This topic was automatically closed after 5 days. New replies are no longer allowed.
