MCPcopy Index your code
hub / github.com/anomalyco/opencode / authenticateScoped

Function authenticateScoped

packages/opencode/test/mcp/oauth-browser.test.ts:163–171  ·  view source on GitHub ↗
(name: string, onAuthorization?: (authorizationUrl: string) => void)

Source from the content-addressed store, hash-verified

161})
162
163const authenticateScoped = (name: string, onAuthorization?: (authorizationUrl: string) => void) =>
164 Effect.gen(function* () {
165 const mcp = yield* service
166 yield* mcp.authenticate(name, onAuthorization).pipe(
167 Effect.ignore,
168 Effect.catchCause(() => Effect.void),
169 Effect.forkScoped,
170 )
171 })
172
173mcpTest.instance(
174 "BrowserOpenFailed event is published when open() throws",

Callers 1

Calls 1

authenticateMethod · 0.45

Tested by

no test coverage detected