# How to logout from federated login in flutter

**URL:** <https://community.auth0.com/t/how-to-logout-from-federated-login-in-flutter/93829>\
**Category:** Get Help\
**Tags:** federated-logout, auth0\
**Created:** [November 7, 2022, 8:01am UTC](https://community.auth0.com/t/how-to-logout-from-federated-login-in-flutter/93829 "2022-11-07T08:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurpreet.ganger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gurpreet.ganger/32/41113_2.png) [@gurpreet.ganger](https://community.auth0.com/u/gurpreet.ganger)\
**Post date:** [November 7, 2022, 8:01am UTC](https://community.auth0.com/t/how-to-logout-from-federated-login-in-flutter/93829/1 "2022-11-07T08:01:54Z")

</div>

i implemented Google login in my app but not able to clear the cache (Unable to logout the user from Auth0 session ).  
when user logged in by Google login and try to logout using

```auto
auth0.webAuthentication(scheme:'https')
          .logout

```

user gets logout from App but Re-login don’t ask for Google Credentials and logging in with same earlier used credentials.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 7, 2022, 6:23pm UTC](https://community.auth0.com/t/how-to-logout-from-federated-login-in-flutter/93829/3 "2022-11-07T18:23:02Z")

</div>

Hey there @gurpreet.ganger welcome to the community!

> [@gurpreet.ganger](#):
>
> user gets logout from App but Re-login don’t ask for Google Credentials and logging in with same earlier used credentials.

This is expected behavior as by default Auth0 does not logout from upstream identity providers, in this case Google. The reason being that if the user were to be logged out from Google on logging out of your app/Auth0 this would log them out of ALL applications tied to Google. Please see the following as well:

> **[Log Users Out of Identity Providers](https://auth0.com/docs/authenticate/login/logout/log-users-out-of-idps)**
>
> Describes how to force a user to log out of their identity provider.

Hope this helps!

---

<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:** [November 22, 2022, 4:31pm UTC](https://community.auth0.com/t/how-to-logout-from-federated-login-in-flutter/93829/4 "2022-11-22T16:31:43Z")

</div>

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