aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-12-22 22:21:27 +0100
committerMiodec <[email protected]>2024-12-23 16:13:58 +0100
commit5d11df3eb70c6df4d04a81cdd3c49f2cc8052f99 (patch)
treec86e714273f892edf78bdbba307cee2215df3580
parentb52bb010b7e71c116715f2f623b6865d1c96a6d2 (diff)
downloadmonkeytype-5d11df3eb70c6df4d04a81cdd3c49f2cc8052f99.tar.gz
monkeytype-5d11df3eb70c6df4d04a81cdd3c49f2cc8052f99.zip
fix(simple modal): improve error message for auth/invalid-credential when reauthenticating
-rw-r--r--frontend/src/ts/modals/simple-modals.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/src/ts/modals/simple-modals.ts b/frontend/src/ts/modals/simple-modals.ts
index 952f496c1..9d2a4f23f 100644
--- a/frontend/src/ts/modals/simple-modals.ts
+++ b/frontend/src/ts/modals/simple-modals.ts
@@ -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,