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

Function signUp

apps/host-selfhost/src/mcp/mcp.test.ts:21–32  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

19const BASE = "http://localhost:4788";
20
21const signUp = async (email: string): Promise<string> => {
22 const inviteCode = await mintInviteCode(handler);
23 const res = await handler(
24 new Request(`${BASE}/api/auth/sign-up/email`, {
25 method: "POST",
26 headers: { "content-type": "application/json" },
27 body: JSON.stringify({ email, password: "password-12345678", name: email, inviteCode }),
28 }),
29 );
30 expect(res.status).toBe(200);
31 return res.headers.get("set-auth-token") ?? "";
32};
33
34const mcp = (token: string, body: unknown, sessionId?: string) =>
35 handler(

Callers 1

mcp.test.tsFile · 0.70

Calls 3

mintInviteCodeFunction · 0.90
getMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected