feat: harden plugin api for separate repos, signed updates and generic external login

This commit is contained in:
LukeGus committed 2026-09-29 18:11:59 -05:00
1 parent fb9c168b6b
commit 80944301dd
310 files changed
+6577 -4927

No files matched your search

@@ -141,7 +141,7 @@ export async function startServer(
live,
sharing: mock.services.get("sessions.sharing") as SessionSharingV1,
guests: mock.ctx.registry.consume<SessionGuestsV1>(
"sessions.sharing.guests",
"session-sharing.guests",
)!,
async request(method, path, { user = "alice", body: given } = {}) {
const body = method === "GET" ? undefined : given;
@@ -416,7 +416,9 @@ describe("room guest links", () => {
roomGuestToken: "guess",
clientIp: "9.9.9.9",
});
if (!result.ok && result.reason === "Too many requests") refused = true;
if (result.ok === false && result.reason === "Too many requests") {
refused = true;
}
}
expect(refused).toBe(true);
});