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

Function use

apps/cloud/src/auth/workos.ts:344–349  ·  view source on GitHub ↗
(op: string, fn: (wos: WorkOS) => Promise<A>)

Source from the content-addressed store, hash-verified

342 // span reads `workos.<operation>` instead of one undifferentiated "workos"
343 // bucket, and failures log which call actually failed.
344 const use = <A>(op: string, fn: (wos: WorkOS) => Promise<A>) =>
345 withServiceLogging(
346 `workos.${op}`,
347 workosErrorFromFailure,
348 tryPromiseService(() => fn(workos)),
349 );
350
351 const authenticateSealedSession = (sessionData: string) =>
352 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