MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / prefetchApiKeyFromApiKeyHelperIfSafe

Function prefetchApiKeyFromApiKeyHelperIfSafe

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

Source from the content-addressed store, hash-verified

639}
640
641export function prefetchApiKeyFromApiKeyHelperIfSafe(
642 isNonInteractiveSession: boolean,
643): void {
644 // Skip if trust not yet accepted — the inner _executeApiKeyHelper check
645 // would catch this too, but would fire a false-positive analytics event.
646 if (
647 isApiKeyHelperFromProjectOrLocalSettings() &&
648 !checkHasTrustDialogAccepted()
649 ) {
650 return
651 }
652 void getApiKeyFromApiKeyHelper(isNonInteractiveSession)
653}
654
655/** Default STS credentials are one hour. We manually manage invalidation, so not too worried about this being accurate. */
656const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000

Callers 1

setupFunction · 0.85

Tested by

no test coverage detected