# Auth0 Logout also logs me out of Google

**URL:** <https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165>\
**Category:** Get Help\
**Tags:** logout, auth0\
**Created:** [July 12, 2020, 11:35am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165 "2020-07-12T11:35:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahood73](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mahood73/32/12732_2.png) [@mahood73](https://community.auth0.com/u/mahood73)\
**Post date:** [July 12, 2020, 11:35am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/1 "2020-07-12T11:35:34Z")

</div>

Hi, I’ve searched and the only similar thing I can find is saying to ensure you don’t have ‘?federated’ at the end of the logout URI - which I do not.

Whenever I log out of my web application, having logged in with Google, it logs me out of Google also.  
I call:  
`hxxps://www.mydomain.com/auth/logout`  
This is a node.js / express route which clears my session in the app and then returns a 302 redirect to:  
`hxxps://mytenant.eu.auth0.com/logout?client_id=secret&returnTo=https%3A%2F%2Fwww.mydomain.com%2F`  
As you can see, no ‘federated’!  
Instead of returning me to my app, Auth0 then sends me a 302 redirect to:  
`hxxps://accounts.google.com/logout`

The log file in my dashboard doesn’t help me much:  
{  
“date”: “2020-07-12T11:10:48.202Z”,  
“type”: “slo”,  
“description”: “Redirected to IdP”,  
“connection”: “google-oauth2”,  
“connection\_id”: “redacted”,  
“client\_id”: “redacted”,  
“client\_name”: “redacted”,  
“ip”: “redacted”,  
“user\_agent”: “Chrome 83.0.4103 / Mac OS X 10.15.5”,  
“details”: {  
“return\_to”: “hxxps://www.mydomain.com/”,  
“allowed\_logout\_url”: [  
“hxxp://localhost:3000/”,  
“hxxps://www.mydomain.com/”,  
“hxxp://www.mydomain.com/”  
],  
“session\_id”: “redacted”  
},  
“hostname”: “[mytenant.eu.auth0.com](http://mytenant.eu.auth0.com)”,  
“user\_id”: “google-oauth2|redacted”,  
“user\_name”: “[redacted@gmail.com](mailto:redacted@gmail.com)”,  
“log\_id”: “90020200712111048624000636608013511563534887935543345170”,  
“\_id”: “90020200712111048624000636608013511563534887935543345170”,  
“isMobile”: false  
}

Any idea what I’m doing wrong? Or have I tripped over something weird?

Thanks,

Mark

PS Obviously ‘hxxps’, ‘mydomain’, ‘mytenant’ and ‘redacted’ aren’t what I really see!

---

<div class="post-metadata">

**Author:** ![thameera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thameera/32/13430_2.png) [@thameera](https://community.auth0.com/u/thameera)\
**Post date:** [July 13, 2020, 1:17am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/2 "2020-07-13T01:17:02Z")

</div>

Hi @mahood73, that’s definitely not expected. One potential issue could be that you are using `https://mytenant.eu.auth0.com/logout`. Can you try `https://mytenant.eu.auth0.com/v2/logout` instead? (note the `/v2` part)

Side note: noticed that you have `client_id=secret` in the URL. The value of that param should be the client ID and **not the secret**.

---

<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:** [July 13, 2020, 8:05am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/3 "2020-07-13T08:05:47Z")

</div>

Let us know if what Thameera suggested solved your struggle!

---

<div class="post-metadata">

**Author:** ![mahood73](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mahood73/32/12732_2.png) [@mahood73](https://community.auth0.com/u/mahood73)\
**Post date:** [July 13, 2020, 8:55am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/4 "2020-07-13T08:55:34Z")

</div>

Thameera,

thank you - that did indeed solve the problem! I think I got the URL I was using from the node.js quickstart, but I see in the API docs that it should contain ‘v2’.

And yes, my client\_id is not ‘secret’, I am sending the right value, I just hid it for the post.

Thank you again!

Mark

---

<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:** [July 13, 2020, 9:15am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/5 "2020-07-13T09:15:23Z")

</div>

No worries! We’re here for you!

---

<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:** [July 28, 2020, 9:15am UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/6 "2020-07-28T09:15:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dan-auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dan-auth0](https://community.auth0.com/u/dan-auth0)\
**Post date:** [October 11, 2020, 5:59pm UTC](https://community.auth0.com/t/auth0-logout-also-logs-me-out-of-google/46165/7 "2020-10-11T17:59:46Z")

</div>

Edit: I noticed that the Node.js Quickstart with Passport is already updated 🙂 [Auth0 Express SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/nodejs/01-login)

Howdy, Mark! I am going to request the Quickstart to be updated. I faced the same issue while update the " [Node.js and Express Authentication Using Passport"](https://auth0.com/blog/create-a-simple-and-secure-node-express-app/) tutorial.

Thanks, Thameera, for providing this solution!
