mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-28 10:59:46 +08:00
impr(authentication): error message when sign in popup was blocked by the browser
fixes #5530
This commit is contained in:
parent
2a28bee7c4
commit
a1a94db1a3
1 changed files with 3 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue