createCredentials method

Future<Map<String, dynamic>> createCredentials(
  1. String strategy,
  2. String id,
  3. Map<String, dynamic> credentials, {
  4. bool? refresh,
})

Creates authentication credentials for a user.

Implementation

Future<Map<String, dynamic>> createCredentials(
    String strategy, String id, Map<String, dynamic> credentials,
    {bool? refresh}) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'createCredentials',
    strategy: strategy,
    uid: id,
    body: credentials,
  ));

  return response.result as Map<String, dynamic>;
}