SDK
SDK C# v2.x
2

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);
}