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

Function getAuthHeaders

src/services/teamMemorySync/index.ts:169–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169function getAuthHeaders(): {
170 headers?: Record<string, string>
171 error?: string
172} {
173 const oauthTokens = getClaudeAIOAuthTokens()
174 if (oauthTokens?.accessToken) {
175 return {
176 headers: {
177 Authorization: `Bearer ${oauthTokens.accessToken}`,
178 'anthropic-beta': OAUTH_BETA_HEADER,
179 'User-Agent': getClaudeCodeUserAgent(),
180 },
181 }
182 }
183 return { error: 'No OAuth token available for team memory sync' }
184}
185
186// ─── Fetch (pull) ────────────────────────────────────────────
187

Callers 3

fetchTeamMemoryOnceFunction · 0.70
fetchTeamMemoryHashesFunction · 0.70
uploadTeamMemoryFunction · 0.70

Calls 1

getClaudeCodeUserAgentFunction · 0.85

Tested by

no test coverage detected