MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / fetchWithCurrentAuth

Function fetchWithCurrentAuth

source code/utils/fastMode.ts:449–461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447 lastPrefetchAt = now
448
449 const fetchWithCurrentAuth = async (): Promise<FastModeResponse> => {
450 const currentTokens = getClaudeAIOAuthTokens()
451 const auth =
452 currentTokens?.accessToken && hasProfileScope()
453 ? { accessToken: currentTokens.accessToken }
454 : apiKey
455 ? { apiKey }
456 : null
457 if (!auth) {
458 throw new Error('No auth available')
459 }
460 return fetchFastModeStatus(auth)
461 }
462
463 async function doFetch(): Promise<void> {
464 try {

Callers 1

doFetchFunction · 0.85

Calls 2

fetchFastModeStatusFunction · 0.85
hasProfileScopeFunction · 0.70

Tested by

no test coverage detected