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

Function use

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

Source from the content-addressed store, hash-verified

403 // span reads `workos.<operation>` instead of one undifferentiated "workos"
404 // bucket, and failures log which call actually failed.
405 const use = <A>(op: string, fn: (wos: WorkOS) => Promise<A>) =>
406 withServiceLogging(
407 `workos.${op}`,
408 workosErrorFromFailure,
409 tryPromiseService(() => fn(workos)),
410 );
411
412 const authenticateSealedSession = (sessionData: string) =>
413 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