[auth][android] update getJSError to handle 'INVALID_IDENTIFIER' - return from fetchSignInMethodsForEmail for example if email is invalid (not a standard auth exception, it's a grpc one it seems)

This commit is contained in:
Salakar 2018-05-12 22:15:23 +01:00
parent c185b3b060
commit a064d7dd2a
1 changed files with 4 additions and 0 deletions

View File

@ -1379,6 +1379,10 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
case "OPERATION_NOT_ALLOWED":
message = "This operation is not allowed. You must enable this service in the console.";
break;
case "INVALID_IDENTIFIER":
code = "INVALID_EMAIL";
message = invalidEmail;
break;
}
}
}