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

Function credentialInput

packages/llm/src/route/auth.ts:107–110  ·  view source on GitHub ↗
(source: Secret | Credential)

Source from the content-addressed store, hash-verified

105export const passthrough = none
106
107const credentialInput = (source: Secret | Credential) =>
108 typeof source === "string" || Redacted.isRedacted(source) || Config.isConfig(source)
109 ? credentialFromSecret(source, "value")
110 : source
111
112export function bearer(source: Secret | Credential): Auth
113export function bearer(source: Secret | Credential) {

Callers 3

bearerFunction · 0.85
headerFunction · 0.85
renderFunction · 0.85

Calls 1

credentialFromSecretFunction · 0.85

Tested by

no test coverage detected