SDK
SDK Dart v2.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 #

Copied to clipboard!
Future<Map<String, dynamic>> deleteMyCredentials(String strategy)
Argument Type Description
strategy
String
Strategy to use

Usage #

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