impr(authentication): error message when sign in popup was blocked by the browser

fixes #5530
This commit is contained in:
Miodec 2024-07-25 10:54:01 +02:00
parent 2a28bee7c4
commit a1a94db1a3

View file

@ -381,6 +381,9 @@ async function signInWithProvider(provider: AuthProvider): Promise<void> {
message = "";
// message = "Popup closed by user";
// return;
} else if (error.code === "auth/popup-blocked") {
message =
"Sign in popup was blocked by the browser. Check the address bar for a blocked popup icon, or update your browser settings to allow popups.";
} else if (error.code === "auth/user-cancelled") {
message = "";
// message = "User refused to sign in";