signInConditionally method
Future<void>
signInConditionally(
- String email,
- String password, {
- required void onSuccess(),
- required void onError(
- SyneriseError error
signInConditionally returns a 'ClientConditionalAuthResult' that represents the result of a conditional
sign-in operation.
Args: email (String): The email parameter is a string that represents the user's email address. password (String): The password parameter is a string that represents the user's password.
Returns:
The method signInConditionally is returning a ClientConditionalAuthResult.
Implementation
Future<void> signInConditionally(String email, String password,
{required void Function(ClientConditionalAuthResult) onSuccess,
required void Function(SyneriseError error) onError}) async {
SyneriseResult<ClientConditionalAuthResult> result =
await _methods.signInConditionally(email, password);
result.onSuccess((result) {
onSuccess(result);
}).onError((error) {
onError(error);
});
}