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

Function basic

packages/opencode/test/server/httpapi-authorization.test.ts:68–68  ·  view source on GitHub ↗
(username: string, password: string)

Source from the content-addressed store, hash-verified

66const itV2Secret = testEffect(v2ApiLayer.pipe(Layer.provide(secretLayer)))
67
68const basic = (username: string, password: string) => ServerAuth.header({ username, password }) ?? ""
69
70const token = (username: string, password: string) => Buffer.from(`${username}:${password}`).toString("base64")
71

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected