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

Function signOut

e2e/cloud/logout-stale-session.test.ts:59–66  ·  view source on GitHub ↗
(cookie?: string)

Source from the content-addressed store, hash-verified

57 const target = yield* Target;
58
59 const signOut = (cookie?: string) =>
60 Effect.promise(() =>
61 fetch(new URL("/api/auth/logout", target.baseUrl), {
62 method: "POST",
63 redirect: "manual",
64 ...(cookie ? { headers: { cookie } } : {}),
65 }),
66 );
67
68 // A session cookie that no longer authenticates — expired, or revoked
69 // upstream while the tab sat open. There is nothing to end at WorkOS, but

Callers 1

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected