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

Function token

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

Source from the content-addressed store, hash-verified

68const basic = (username: string, password: string) => ServerAuth.header({ username, password }) ?? ""
69
70const token = (username: string, password: string) => Buffer.from(`${username}:${password}`).toString("base64")
71
72const getProbe = (headers?: Record<string, string>) =>
73 HttpClientRequest.get("/probe").pipe(

Callers 1

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected