[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:
parent
c185b3b060
commit
a064d7dd2a
@ -1379,6 +1379,10 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
|
|||||||
case "OPERATION_NOT_ALLOWED":
|
case "OPERATION_NOT_ALLOWED":
|
||||||
message = "This operation is not allowed. You must enable this service in the console.";
|
message = "This operation is not allowed. You must enable this service in the console.";
|
||||||
break;
|
break;
|
||||||
|
case "INVALID_IDENTIFIER":
|
||||||
|
code = "INVALID_EMAIL";
|
||||||
|
message = invalidEmail;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user