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

Function authService

packages/opencode/test/mcp/auth.test.ts:49–53  ·  view source on GitHub ↗
(fsLayer: Layer.Layer<FSUtil.Service>)

Source from the content-addressed store, hash-verified

47}
48
49function authService(fsLayer: Layer.Layer<FSUtil.Service>) {
50 return McpAuth.Service.use((auth) => Effect.succeed(auth)).pipe(
51 Effect.provide(AppNodeBuilder.build(McpAuth.node, [[FSUtil.node, fsLayer]])),
52 )
53}
54
55test("serializes concurrent auth file updates across service instances", async () => {
56 const file = authFile()

Callers 1

auth.test.tsFile · 0.85

Calls 1

useMethod · 0.45

Tested by

no test coverage detected