feat: activate provisional users with scoped passkey enrollment

This commit is contained in:
2026-10-16 08:48:35 +09:00
parent af008f802d
commit d22899d39e
34 changed files with 4278 additions and 49 deletions
+26 -1
View File
@@ -1,5 +1,30 @@
import { assertEquals } from "jsr:@std/assert";
import { ssr } from "../src/routes/+layout.ts";
import { load, ssr } from "../src/routes/+layout.ts";
Deno.test("activation and hosting shells never require Workspace catalog authority", async () => {
for (
const path of [
"/activate",
"/hosting/accounts",
"/hosting/settings",
"/hosting/setup",
]
) {
let calls = 0;
const event = {
url: new URL(path, "https://workspace.test"),
fetch: () => {
calls++;
throw new Error("Workspace API must not be called");
},
} as unknown as Parameters<typeof load>[0];
assertEquals(await load(event).deferredCatalog, {
ok: true,
data: { accessibleWorkspaces: [], workspaceCatalogError: null },
});
assertEquals(calls, 0);
}
});
Deno.test("workspace frontend serves deep links through the client SPA", () => {
assertEquals(ssr, false);