MCPcopy Create free account
hub / github.com/freecodexyz/free-code / prefetchApiKeyFromApiKeyHelperIfSafe

Function prefetchApiKeyFromApiKeyHelperIfSafe

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

Source from the content-addressed store, hash-verified

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

Callers 1

setupFunction · 0.85

Tested by

no test coverage detected