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

Function identityFromResponse

apps/host-selfhost/src/mcp/mcp.test.ts:26–29  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

24}
25
26const identityFromResponse = (response: Response): AuthenticatedIdentity => ({
27 token: response.headers.get("set-auth-token") ?? "",
28 cookie: response.headers.get("set-cookie")?.split(";", 1)[0] ?? "",
29});
30
31const signUpIdentity = async (email: string): Promise<AuthenticatedIdentity> => {
32 const inviteCode = await mintInviteCode(handler);

Callers 2

signUpIdentityFunction · 0.85
signInBootstrapFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected