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

Function authHeaders

packages/opencode/src/plugin/xai.ts:87–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87function authHeaders() {
88 return {
89 "Content-Type": "application/x-www-form-urlencoded",
90 Accept: "application/json",
91 "User-Agent": `opencode/${InstallationVersion}`,
92 }
93}
94
95// Parse the `exp` claim out of a JWT access_token without verifying the
96// signature. We only use this to decide whether to proactively refresh, never

Callers 4

exchangeCodeForTokensFunction · 0.70
refreshAccessTokenFunction · 0.70
requestDeviceCodeFunction · 0.70
pollDeviceCodeTokenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected