SDK
SDK Dart Null Safety v3.x
2

CreateMyCredentials #

Creates the current user's credentials for the specified strategy.

Arguments #

Future<Map<String, dynamic>> createMyCredentials(
    String strategy, {
    Map<String, dynamic> credentials,
  })
ArgumentTypeDescription
strategy
String
Strategy to use
credentials
Map<String, dynamic>
Map representing the credentials

Return #

A ConcurrentHashMap representing the new credentials.

Usage #

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