MCPcopy
hub / github.com/anomalyco/opencode / authConfigLayer

Function authConfigLayer

packages/opencode/test/server/httpapi-ui.test.ts:46–51  ·  view source on GitHub ↗
(input?: { password?: string; username?: string })

Source from the content-addressed store, hash-verified

44const it = testEffect(Layer.mergeAll(testStateLayer, fsUtilLayer, RuntimeFlags.layer()))
45
46function authConfigLayer(input?: { password?: string; username?: string }) {
47 return ServerAuth.Config.configLayer({
48 password: input?.password === undefined ? Option.none() : Option.some(input.password),
49 username: input?.username ?? "opencode",
50 })
51}
52
53function restoreEnv(key: string, value: string | undefined) {
54 if (value === undefined) {

Callers 1

uiAppFunction · 0.85

Calls 1

configLayerMethod · 0.45

Tested by

no test coverage detected