Auth0 Home Blog Docs

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

xamarin
logout

#1

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?


#2

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


#3

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