diff --git a/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.java b/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.java index ec0b218d4..989ac0c83 100644 --- a/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.java +++ b/auth0/src/main/java/com/auth0/android/authentication/AuthenticationException.java @@ -200,7 +200,9 @@ public boolean isMultifactorTokenInvalid() { /// When MFA code sent is invalid or expired public boolean isMultifactorCodeInvalid() { - return "a0.mfa_invalid_code".equals(code) || "invalid_grant".equals(code) && "Invalid otp_code.".equals(description); + return "a0.mfa_invalid_code".equals(code) + || "invalid_grant".equals(code) && "Invalid otp_code.".equals(description) + || "invalid_grant".equals(code) && "Wrong phone number or verification code.".equals(description); } /// When password used for SignUp does not match connection's strength requirements. @@ -238,4 +240,4 @@ public boolean isLoginRequired() { return "login_required".equals(code); } -} \ No newline at end of file +}