fix(simple modal): improve error message for auth/invalid-credential when reauthenticating

This commit is contained in:
Miodec 2024-12-22 22:21:27 +01:00
parent b52bb010b7
commit 5d11df3eb7

View file

@ -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,