fix(auth): follow server redirect after passkey sign-in
This commit is contained in:
1 parent
6123a6865e
commit
bef67b0a24
5 files changed
+63
-6
No files matched your search
@@ -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");
|
||||
});
|
||||
Reference in new issue
Block a user