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

Function authHeaders

packages/opencode/src/plugin/snowflake-cortex.ts:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79function authHeaders() {
80 return {
81 "Content-Type": "application/x-www-form-urlencoded",
82 Accept: "application/json",
83 "User-Agent": `opencode/${InstallationVersion}`,
84 }
85}
86
87function authBasicHeader() {
88 return `Basic ${Buffer.from(`${OAUTH_CLIENT_ID}:${OAUTH_CLIENT_ID}`).toString("base64")}`

Callers 2

exchangeCodeForTokenFunction · 0.70
refreshAccessTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected