updateCredentials method

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

Updates a user credentials for the specified authentication strategy.

Implementation

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

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