MCPcopy Create free account
hub / github.com/anomalyco/opencode / authorize

Function authorize

packages/core/src/integration.ts:311–312  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

309 })
310
311 const authorize = <A, E, R>(effect: Effect.Effect<A, E, R>) =>
312 effect.pipe(Effect.mapError((cause) => new AuthorizationError({ cause })))
313
314 const close = (attemptScope: Scope.Closeable) =>
315 Scope.close(attemptScope, Exit.void).pipe(Effect.forkIn(scope, { startImmediately: true }), Effect.asVoid)

Callers 1

integration.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected