getCredentialsById method
Gets credential information for the user identified by the strategy's unique user identifier userId
The returned result object will vary depending on the strategy (see the getById plugin function), and it can be empty.
Note: the user identifier to use depends on the specified strategy. If you wish to get credential information using a kuid identifier, use the getCredentials API route instead.
Implementation
Future<Map<String, dynamic>> getCredentialsById(
String strategy, String id) async {
final response = await kuzzle.query(KuzzleRequest(
controller: name,
action: 'getCredentialsById',
strategy: strategy,
uid: id,
));
return response.result as Map<String, dynamic>;
}