@@ -519,8 +519,12 @@ private static AuthErrorReason GetFailureReason(string responseData)
|
519 | 519 | failureReason = AuthErrorReason.LoginCredentialsTooOld;
|
520 | 520 | break;
|
521 | 521 |
|
522 |
| -//possible errors from Third Party Authentication using GoogleIdentityUrl |
523 |
| -case "INVALID_PROVIDER_ID : Provider Id is not supported.": |
| 522 | +case "OPERATION_NOT_ALLOWED": |
| 523 | +failureReason = AuthErrorReason.OperationNotAllowed; |
| 524 | +break; |
| 525 | + |
| 526 | +//possible errors from Third Party Authentication using GoogleIdentityUrl |
| 527 | +case "INVALID_PROVIDER_ID : Provider Id is not supported.": |
524 | 528 | failureReason = AuthErrorReason.InvalidProviderID;
|
525 | 529 | break;
|
526 | 530 | case "MISSING_REQUEST_URI":
|
@@ -536,10 +540,10 @@ private static AuthErrorReason GetFailureReason(string responseData)
|
536 | 540 | break;
|
537 | 541 | case "MISSING_PASSWORD":
|
538 | 542 | failureReason = AuthErrorReason.MissingPassword;
|
539 |
| -break; |
| 543 | +break; |
540 | 544 |
|
541 |
| -//possible errors from Email/Password Account Signup (via signupNewUser or setAccountInfo) |
542 |
| -case "WEAK_PASSWORD : Password should be at least 6 characters": |
| 545 | +//possible errors from Email/Password Account Signup (via signupNewUser or setAccountInfo) |
| 546 | +case "WEAK_PASSWORD : Password should be at least 6 characters": |
543 | 547 | failureReason = AuthErrorReason.WeakPassword;
|
544 | 548 | break;
|
545 | 549 | case "EMAIL_EXISTS":
|
@@ -561,14 +565,20 @@ private static AuthErrorReason GetFailureReason(string responseData)
|
561 | 565 | case "USER_DISABLED":
|
562 | 566 | failureReason = AuthErrorReason.UserDisabled;
|
563 | 567 | break;
|
| 568 | +case "TOO_MANY_ATTEMPTS_TRY_LATER": |
| 569 | +failureReason = AuthErrorReason.TooManyAttemptsTryLater; |
| 570 | +break; |
564 | 571 |
|
565 |
| -//possible errors from Email/Password Signin or Password Recovery or Email/Password Sign up using setAccountInfo |
566 |
| -case "MISSING_EMAIL": |
| 572 | +//possible errors from Email/Password Signin or Password Recovery or Email/Password Sign up using setAccountInfo |
| 573 | +case "MISSING_EMAIL": |
567 | 574 | failureReason = AuthErrorReason.MissingEmail;
|
568 | 575 | break;
|
| 576 | +case "RESET_PASSWORD_EXCEED_LIMIT": |
| 577 | +failureReason = AuthErrorReason.ResetPasswordExceedLimit; |
| 578 | +break; |
569 | 579 |
|
570 |
| -//possible errors from Password Recovery |
571 |
| -case "MISSING_REQ_TYPE": |
| 580 | +//possible errors from Password Recovery |
| 581 | +case "MISSING_REQ_TYPE": |
572 | 582 | failureReason = AuthErrorReason.MissingRequestType;
|
573 | 583 | break;
|
574 | 584 |
|
|
0 commit comments