mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-10 08:37:24 +08:00
fix(simple modal): improve error message for auth/invalid-credential when reauthenticating
This commit is contained in:
parent
b52bb010b7
commit
5d11df3eb7
1 changed files with 6 additions and 0 deletions
|
@ -199,6 +199,12 @@ async function reauthenticate(
|
|||
status: 0,
|
||||
message: "Incorrect password",
|
||||
};
|
||||
} else if (typedError.code === "auth/invalid-credential") {
|
||||
return {
|
||||
status: 0,
|
||||
message:
|
||||
"Password is incorrect or your account does not have password authentication enabled.",
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
status: -1,
|
||||
|
|
Loading…
Add table
Reference in a new issue