public override void OnVerificationFailed(FirebaseException e) { // This callback is invoked in an invalid request for verification is made, // for instance if the the phone number format is not valid. UpdateInfo("onVerificationFailed" + e.Message); if (e.GetType() == typeof(FirebaseAuthInvalidCredentialsException)) { // Invalid request // [START_EXCLUDE] UpdateInfo("INVALID"); // [END_EXCLUDE] } else if (e.GetType() == typeof(FirebaseTooManyRequestsException)) { // The SMS quota for the project has been exceeded // [START_EXCLUDE] UpdateInfo("TIME"); // [END_EXCLUDE] } }
public override void OnVerificationFailed(FirebaseException exception) { FirebaseAuthService.FirebaseExceptionTypeToEnumDict.TryGetValue(exception.GetType(), out FirebaseAuthExceptionType exceptionType); var customException = new FirebaseAuthException(exception.Message, exception, exceptionType); _subject.OnError(customException); }
public override void OnVerificationFailed(FirebaseException exception) { Log.Debug("OnVerificationFailed", exception.GetType().ToString()); Log.Debug("OnVerificationFailed", exception.Class.ToString()); VerificationCompleted?.Invoke(this, new PhoneAuthFailedEventArgs(exception)); }
public override void OnVerificationFailed(FirebaseException exception) { Log.Debug("OnVerificationFailed", exception.GetType().ToString()); Log.Debug("OnVerificationFailed", exception.Class.ToString()); }