# How to perform a silent logout in Android

**URL:** <https://community.auth0.com/t/how-to-perform-a-silent-logout-in-android/122236>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [December 3, 2023, 8:41pm UTC](https://community.auth0.com/t/how-to-perform-a-silent-logout-in-android/122236 "2023-12-03T20:41:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsvry](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rsvry](https://community.auth0.com/u/rsvry)\
**Post date:** [December 3, 2023, 8:41pm UTC](https://community.auth0.com/t/how-to-perform-a-silent-logout-in-android/122236/1 "2023-12-03T20:41:15Z")

</div>

When the user taps logout button, I don’t want the browser window to appear - want it to be a silent logout. There was a mention of “just clear out the tokens”? Which API should be used for that? If such an API is invoked, will it be equivalent to calling “WebAuthProvider.logout”?

---

<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:** [December 4, 2023, 10:17pm UTC](https://community.auth0.com/t/how-to-perform-a-silent-logout-in-android/122236/2 "2023-12-04T22:17:33Z")

</div>

Hello @rsvry welcome to the community!

> [@rsvry](#):
>
> When the user taps logout button, I don’t want the browser window to appear - want it to be a silent logout.

Unfortunately, this is just a function of Android for which the Android SDK doesn’t have much control over.

> [@rsvry](#):
>
> There was a mention of “just clear out the tokens”? Which API should be used for that? If such an API is invoked, will it be equivalent to calling “WebAuthProvider.logout”?

You can use the [Credentials Manager](https://github.com/auth0/Auth0.Android#credentials-manager) to clear credentials, but this is not equivalent to logging out via `WebAuthProvider` as clearing the credentials is device specific and doesn’t do anything to terminate the session(s).

---

<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:** [December 18, 2023, 10:18pm UTC](https://community.auth0.com/t/how-to-perform-a-silent-logout-in-android/122236/4 "2023-12-18T22:18:33Z")

</div>

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