deleteCredentials method

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

Deletes user credentials for the specified authentication strategy.

Implementation

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

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