validateMyCredentials method

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

Validate credentials of the specified strategy for the current user.

Implementation

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

  return response.result as bool;
}