getCredentials #
Gets a user's credential information for the specified authentication strategy.
Future<Map<String, dynamic>> getCredentials(
String strategy, String id)
Property | Type | Description |
---|---|---|
strategy | String | Strategy identifier |
id | String | User kuid |
Return #
A Map containing the credential information (depends on the authentication strategy).
Usage #
final result = await kuzzle.security.getCredentials('local', 'john.doe');
/*
{username: 'jdoe', kuid: 'john.doe'}
*/
Edit this page on Github(opens new window)