SDK
SDK Dart Null Safety v3.x
2

DeleteMyCredentials #

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

Arguments #

Future<Map<String, dynamic>> deleteMyCredentials(String strategy)
ArgumentTypeDescription
strategy
String
Strategy to use

Usage #

await kuzzle
  .auth
  .login(
    'local',
    {
      'username': 'foo',
      'password': 'bar'
    },
  );
final result = await kuzzle
  .auth
  .deleteMyCredentials('local');