SDK
SDK Dart Null Safety v3.x
2

CreateMyCredentials #

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

Arguments #

Copied to clipboard!
Future<Map<String, dynamic>> createMyCredentials(
    String strategy, {
    Map<String, dynamic> credentials,
  })
Argument Type Description
strategy
String
Strategy to use
credentials
Map<String, dynamic>
Map representing the credentials

Return #

A ConcurrentHashMap representing the new credentials.

Usage #

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