validateUserCredentials static method
Future<AuthPublicResponse>
validateUserCredentials(
{ - required String loginChallenge,
- required String email,
- 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);
}