MCPcopy
hub / github.com/codeaashu/claude-code / prefetchApiKeyFromApiKeyHelperIfSafe

Function prefetchApiKeyFromApiKeyHelperIfSafe

src/utils/auth.ts:591–603  ·  view source on GitHub ↗
(
  isNonInteractiveSession: boolean,
)

Source from the content-addressed store, hash-verified

589}
590
591export function prefetchApiKeyFromApiKeyHelperIfSafe(
592 isNonInteractiveSession: boolean,
593): void {
594 // Skip if trust not yet accepted — the inner _executeApiKeyHelper check
595 // would catch this too, but would fire a false-positive analytics event.
596 if (
597 isApiKeyHelperFromProjectOrLocalSettings() &&
598 !checkHasTrustDialogAccepted()
599 ) {
600 return
601 }
602 void getApiKeyFromApiKeyHelper(isNonInteractiveSession)
603}
604
605/** Default STS credentials are one hour. We manually manage invalidation, so not too worried about this being accurate. */
606const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000

Callers 1

setupFunction · 0.85

Tested by

no test coverage detected