SDK
SDK C# v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

LogoutAsync #

Revokes the user's token & unsubscribe them from registered rooms.

Arguments #

Copied to clipboard!
public async Task LogoutAsync();

Usage #

Copied to clipboard!
try {
  await kuzzle.Auth.LoginAsync(
    "local",
    JObject.Parse("{username: 'foo', password: 'bar'}"));
  await kuzzle.Auth.LogoutAsync();
  Console.WriteLine("Success");
} catch (KuzzleException e) {
  Console.WriteLine(e);
}