SDK
SDK Dart Null Safety v3.x
2

deleteCredentials #

Deletes user credentials for the specified authentication strategy.


Copied to clipboard!
Future<Map<String, dynamic>> deleteCredentials(
      String strategy, String id, {bool? waitForRefresh})

Property Type Description
strategy
String
Strategy to use
id
String
User id
waitForRefresh
bool?

(null)
If set to true, Kuzzle will not respond until the credentials deletion is indexed

Returns #

An acknowledgment message.

Usage #

Copied to clipboard!
final result = await kuzzle.security.deleteCredentials('local', 'john.doe');
/*
{ acknowledged: true }
*/