# Federated logout

**URL:** <https://community.auth0.com/t/federated-logout/124280>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [January 5, 2024, 10:38pm UTC](https://community.auth0.com/t/federated-logout/124280 "2024-01-05T22:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrevix00](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/xrevix00/32/51810_2.png) [@xrevix00](https://community.auth0.com/u/xrevix00)\
**Post date:** [January 5, 2024, 10:38pm UTC](https://community.auth0.com/t/federated-logout/124280/1 "2024-01-05T22:38:22Z")

</div>

Hey, regarding this topic: [Federated logout logs me out of my different apps](https://community.auth0.com/t/federated-logout-logs-me-out-of-my-different-apps/121798)

In case user would login with socials on someone’s else device and then would like to logout, federated logout would be needed but it leads to weird behavior (logging out from the app but also from the google account), is it the only way to logout user from the app when they sign in with socials?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 9, 2024, 5:09pm UTC](https://community.auth0.com/t/federated-logout/124280/3 "2024-01-09T17:09:35Z")

</div>

Hi @xrevix00,

> [@xrevix00](#):
>
> federated logout would be needed but it leads to weird behavior (logging out from the app but also from the google account)

This behavior is expected. If you pass `federated:true` with the logout request, it logs the user out of the app and identity provider (i.e. Google), and on a public device, you would want the user fully logged out of the application and IdP (Google) after a session.

> [@xrevix00](#):
>
> is it the only way to logout user from the app when they sign in with socials?

You can log a social user out of the **Application layer and the Auth0 layer only** by _not passing the_ `federated` _param_.

As an aside, I see you’re passing an empty string(`''`) in the `federated` param. **Don’t do this** , it is expecting a bool (true or false). I would expect an empty string to return an error, but it may end up evaluated as truth-y and causing unexpected behavior.

---

<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:** [January 23, 2024, 5:09pm UTC](https://community.auth0.com/t/federated-logout/124280/4 "2024-01-23T17:09:36Z")

</div>

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