authenticate method

Future<Credential> authenticate(
  1. String identifier,
  2. String password
)

Implementation

Future<Credential> authenticate(String identifier, String password) async {
  final body = {'username': identifier, 'password': password};
  final credential = await _retrieveToken(grantTypeUser, body);
  await _onCredential(credential);
  return credential;
}