getCredentialFields method

Future<List> getCredentialFields(
  1. String strategy
)

Retrieves the list of accepted field names by the specified authentication strategy.

Implementation

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

  return response.result as List<dynamic>;
}