getCredentials method

Future<Map<String, dynamic>> getCredentials(
  1. String strategy,
  2. String id
)

Gets a user's credential information for the specified authentication strategy.

The returned content depends on the authentication strategy, but it should never include sensitive information.

Implementation

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

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