# Equivalent of Xamarin.Auth's logout() for clearing Auth0's login cookie

**URL:** <https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801>\
**Category:** Get Help\
**Tags:** logout, xamarin\
**Created:** [November 11, 2018, 9:55pm UTC](https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801 "2018-11-11T21:55:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simon/32/13216_2.png) [@Simon](https://community.auth0.com/u/Simon)\
**Post date:** [November 11, 2018, 9:55pm UTC](https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801/1 "2018-11-11T21:55:26Z")

</div>

Previously, a simple call to logout() in the deprecated Xamarin.Auth plugin would clear the login cookie at Auth0.

I’ve read about the clearing by calling the Login lock with a clear flag - but I just wish to log out, not present the login dialog to the user again.

Also could call the logout endpoint, but wonder if there is a more direct way using the Auth0Client instance?

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [November 12, 2018, 12:37am UTC](https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801/2 "2018-11-12T00:37:08Z")

</div>

Hi Simon.  
I don’t have VS handy to test it, but doesn’t `auth0Client.LogoutAsync()` do the job?

---

<div class="post-metadata">

**Author:** ![Simon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/simon/32/13216_2.png) [@Simon](https://community.auth0.com/u/Simon)\
**Post date:** [November 12, 2018, 1:43am UTC](https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801/3 "2018-11-12T01:43:36Z")

</div>

Oh, how embarrassing. Somehow didn’t come up in all the searches I did or intellisense method listing. I haven’t tested yet, but I highly suspect it will. Thanks

---

<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 12, 2018, 1:43am UTC](https://community.auth0.com/t/equivalent-of-xamarin-auths-logout-for-clearing-auth0s-login-cookie/17801/4 "2018-12-12T01:43:40Z")

</div>

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