SDK
SDK Dart Null Safety v3.x
2

GetMyCredentials #

Returns the current user's credential information for the specified strategy. The data returned will depend on the specified strategy. The result can be empty.

Arguments #

Future<Map<String, dynamic>> getMyCredentials(String strategy)
ArgumentTypeDescription
strategy
String
Strategy to use

Return #

Returns a Map representing the credentials for the provided authentication strategy.

Usage #

await kuzzle  .auth  .login(  'local',  {  'username': 'foo',  'password': 'bar'  },  ); final result = await kuzzle  .auth  .getMyCredentials('local');