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

Function callback

e2e/cloud/auth-session.test.ts:76–82  ·  view source on GitHub ↗
(search: string, cookie?: string)

Source from the content-addressed store, hash-verified

74 const target = yield* Target;
75
76 const callback = (search: string, cookie?: string) =>
77 Effect.promise(() =>
78 fetch(new URL(`/api/auth/callback${search}`, target.baseUrl), {
79 redirect: "manual",
80 ...(cookie ? { headers: { cookie } } : {}),
81 }),
82 );
83
84 // A state that matches no login-state cookie (no login ever started).
85 const noCookie = yield* callback("?code=attacker-code&state=attacker-state");

Callers 7

highlightFunction · 0.85
blockConcurrencyWhileMethod · 0.85
blockConcurrencyWhileMethod · 0.85
blockConcurrencyWhileMethod · 0.85
listenerFunction · 0.85
installBearerAuthHeaderFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected