fix(auth): follow server redirect after passkey sign-in

This commit is contained in:
Clintchiz committed 2026-08-26 19:40:34 +05:30
1 parent 6123a6865e
commit bef67b0a24
5 files changed
+63 -6

No files matched your search

+3 -2
View File
@@ -114,8 +114,9 @@ test("verification components can resend without application-owned schema files"
}
});
test("auth browser runtime refuses cross-origin navigation targets", () => {
test("auth browser runtime refuses cross-origin navigation unless explicitly server-approved", () => {
const source = readFileSync(join(directory, "..", "assets", "client", "auth.js"), "utf8");
expect(source).toContain("if (url.origin !== location.origin) return false");
expect(source).toContain("function navigate(target, allowCrossOrigin = false)");
expect(source).toContain("if (!allowCrossOrigin) return false");
expect(source).toContain("!window.AbortController");
});