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

Function signUpIdentity

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

Source from the content-addressed store, hash-verified

29});
30
31const signUpIdentity = async (email: string): Promise<AuthenticatedIdentity> => {
32 const inviteCode = await mintInviteCode(handler);
33 const res = await handler(
34 new Request(`${BASE}/api/auth/sign-up/email`, {
35 method: "POST",
36 headers: { "content-type": "application/json" },
37 body: JSON.stringify({ email, password: "password-12345678", name: email, inviteCode }),
38 }),
39 );
40 expect(res.status).toBe(200);
41 return identityFromResponse(res);
42};
43
44const signUp = async (email: string): Promise<string> => (await signUpIdentity(email)).token;
45

Callers 2

signUpFunction · 0.85
mcp.test.tsFile · 0.85

Calls 3

mintInviteCodeFunction · 0.90
identityFromResponseFunction · 0.85
handlerFunction · 0.50

Tested by

no test coverage detected