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

Function use

apps/cloud/src/auth/workos.ts:341–346  ·  view source on GitHub ↗
(fn: (wos: WorkOS) => Promise<A>)

Source from the content-addressed store, hash-verified

339 // definitive WorkOS denial (401/403/404 — fail closed) from a transient
340 // failure (429/5xx/network — retryable).
341 const use = <A>(fn: (wos: WorkOS) => Promise<A>) =>
342 withServiceLogging(
343 "workos",
344 workosErrorFromFailure,
345 tryPromiseService(() => fn(workos)),
346 );
347
348 const authenticateSealedSession = (sessionData: string) =>
349 Effect.gen(function* () {

Callers 3

withWorkOSStubFunction · 0.70
workos.tsFile · 0.70

Calls 2

withServiceLoggingFunction · 0.90
tryPromiseServiceFunction · 0.90

Tested by 1

withWorkOSStubFunction · 0.56