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

Function authorization

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

Source from the content-addressed store, hash-verified

105}
106
107function authorization(username: string, password: string) {
108 return `Basic ${Buffer.from(`${username}:${password}`).toString("base64")}`
109}
110
111function call<T>(request: () => Promise<T>) {
112 return Effect.promise(request)

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected