SDK
SDK Dart v1.x
2

# GetMyCredentials

Returns the current user's credential information for the specified strategy. The data returned will depend on the specified strategy. The result can be empty.

# Arguments

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

# Return

Returns a Map representing the credentials for the provided authentication strategy.

# Usage

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