createMyCredentials method

Future<Map<String, dynamic>> createMyCredentials(
  1. String strategy,
  2. Map<String, dynamic> credentials
)

Create credentials of the specified strategy for the current user.

Implementation

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

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