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

Function use

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

Source from the content-addressed store, hash-verified

148 const workos = new WorkOS({ apiKey, clientId, ...workosApiUrlOptions(env.WORKOS_API_URL) });
149
150 const use = <A>(fn: (wos: WorkOS) => Promise<A>) =>
151 withServiceLogging(
152 "workos",
153 () => new WorkOSError(),
154 tryPromiseService(() => fn(workos)),
155 );
156
157 const authenticateSealedSession = (sessionData: string) =>
158 Effect.gen(function* () {

Callers 2

workos.tsFile · 0.70

Calls 2

withServiceLoggingFunction · 0.90
tryPromiseServiceFunction · 0.90

Tested by

no test coverage detected