MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getHeaders

Function getHeaders

src/bridge/bridgeApi.ts:76–89  ·  view source on GitHub ↗
(accessToken: string)

Source from the content-addressed store, hash-verified

74 const EMPTY_POLL_LOG_INTERVAL = 100
75
76 function getHeaders(accessToken: string): Record<string, string> {
77 const headers: Record<string, string> = {
78 Authorization: `Bearer ${accessToken}`,
79 'Content-Type': 'application/json',
80 'anthropic-version': '2023-06-01',
81 'anthropic-beta': BETA_HEADER,
82 'x-environment-runner-version': deps.runnerVersion,
83 }
84 const deviceToken = deps.getTrustedDeviceToken?.()
85 if (deviceToken) {
86 headers['X-Trusted-Device-Token'] = deviceToken
87 }
88 return headers
89 }
90
91 function resolveAuth(): string {
92 const accessToken = deps.getAccessToken()

Callers 9

pollForWorkFunction · 0.85
acknowledgeWorkFunction · 0.85
stopWorkFunction · 0.85
deregisterEnvironmentFunction · 0.85
archiveSessionFunction · 0.85
reconnectSessionFunction · 0.85
heartbeatWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected