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.

DeleteMyCredentialsAsync #

Deletes the current user's credentials for the specified strategy. If the credentials that generated the current JWT are removed, the user will remain logged in until he logs out or his session expires. After that they will no longer be able to log in with the deleted credentials.

Arguments #

public async Task DeleteMyCredentialsAsync(string strategy);
ArgumentTypeDescription
strategy
string
Strategy to use

Exceptions #

Throws a KuzzleException if there is an error. See how to handle error.

Usage #

try {
  await kuzzle.Auth.LoginAsync(
    "local",
    JObject.Parse("{username: 'foo', password: 'bar'}"));
  await kuzzle.Auth.DeleteMyCredentialsAsync("local");
  Console.WriteLine("Credentials Successfully deleted");
} catch (KuzzleException e) {
  Console.WriteLine(e);
}