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

Function signInBootstrap

apps/host-selfhost/src/mcp/mcp.test.ts:46–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44const signUp = async (email: string): Promise<string> => (await signUpIdentity(email)).token;
45
46const signInBootstrap = async (): Promise<AuthenticatedIdentity> => {
47 const response = await handler(
48 new Request(`${BASE}/api/auth/sign-in/email`, {
49 method: "POST",
50 headers: { "content-type": "application/json" },
51 body: JSON.stringify({
52 email: process.env.EXECUTOR_BOOTSTRAP_ADMIN_EMAIL,
53 password: process.env.EXECUTOR_BOOTSTRAP_ADMIN_PASSWORD,
54 }),
55 }),
56 );
57 expect(response.status).toBe(200);
58 return identityFromResponse(response);
59};
60
61const mcp = (token: string, body: unknown, sessionId?: string, browser = false) =>
62 handler(

Callers 1

mcp.test.tsFile · 0.85

Calls 2

identityFromResponseFunction · 0.85
handlerFunction · 0.50

Tested by

no test coverage detected