MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / signUp

Function signUp

apps/host-selfhost/src/first-run.node.test.ts:23–30  ·  view source on GitHub ↗
(body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

21const BASE = "http://localhost:4788";
22const get = (path: string) => handler(new Request(`${BASE}${path}`));
23const signUp = (body: Record<string, unknown>) =>
24 handler(
25 new Request(`${BASE}/api/auth/sign-up/email`, {
26 method: "POST",
27 headers: { "content-type": "application/json" },
28 body: JSON.stringify(body),
29 }),
30 );
31
32test("zero-config boot generates and persists a session secret in the data dir", () => {
33 expect(existsSync(join(DATA_DIR, "auth-secret.key"))).toBe(true);

Callers 1

Calls 1

handlerFunction · 0.50

Tested by

no test coverage detected