validateUserCredentials static method

Future<AuthPublicResponse> validateUserCredentials({
  1. required String loginChallenge,
  2. required String email,
  3. required String password,
})

Implementation

static Future<SoftcorpGrpc.AuthPublicResponse> validateUserCredentials(
    {required String loginChallenge,
    required String email,
    required String password}) async {
  checkServices();
  await applyTest();
  if (loginChallenge == "") {
    throw Exception("invalid login challenge");
  }
  if (email == "" || password == "") {
    throw Exception("invalid email or password");
  }
  return connectService!.validateUserCredentials(
      challenge: loginChallenge, email: email, password: password);
}