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

Function authBasicHeader

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

Source from the content-addressed store, hash-verified

85}
86
87function authBasicHeader() {
88 return `Basic ${Buffer.from(`${OAUTH_CLIENT_ID}:${OAUTH_CLIENT_ID}`).toString("base64")}`
89}
90
91function buildAuthorizeUrl(account: string, role: string | undefined, state: string, pkce: PkceCodes) {
92 const scope = oauthScope(role)

Callers 2

exchangeCodeForTokenFunction · 0.85
refreshAccessTokenFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected