C# client silent logout

Hi there!

We are trying to figure out a way to silently sign out a user from our .NET application that is using Auth0. The issue is that simply discarding the auth token and the refresh token in our application’s storage is not enough. We need a way to terminate the session as well.

Right now we have a “Log out” button in our WPF UI. The idea is that it triggers a method that clears all tokens from memory and terminates the session. However, the LogoutAsync(...) method opens another browser window, which is something we are trying to avoid. Is there a way to silently kill the session in the background without asking for any further UI interactions from the user?

Thanks!

1 Like