fix(native): explain change-password failures and block double submit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jakeandClaude Opus 5.5 committed 2026-10-05 22:15:57 -04:00
1 parent ea9cb3de8d
commit 085b681d8a
15 files changed
+195 -131

No files matched your search

+6
View File
@@ -48,4 +48,10 @@ describe("getAuthErrorMessage", () => {
expect(getAuthErrorMessage({ code: "INVALID_EMAIL" }, "F")).toBe("Enter a valid email address");
expect(getAuthErrorMessage({ code: "UNKNOWN" }, "F")).toBe("F");
});
test("maps a wrong current password", () => {
expect(getAuthErrorMessage({ code: "INVALID_PASSWORD" }, "x")).toBe(
"Current password is incorrect",
);
});
});