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

Function prefetchApiKeyFromApiKeyHelperIfSafe

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

Source from the content-addressed store, hash-verified

663}
664
665export function prefetchApiKeyFromApiKeyHelperIfSafe(
666 isNonInteractiveSession: boolean,
667): void {
668 // Skip if trust not yet accepted — the inner _executeApiKeyHelper check
669 // would catch this too, but would fire a false-positive analytics event.
670 if (
671 isApiKeyHelperFromProjectOrLocalSettings() &&
672 !checkHasTrustDialogAccepted()
673 ) {
674 return
675 }
676 void getApiKeyFromApiKeyHelper(isNonInteractiveSession)
677}
678
679/** Default STS credentials are one hour. We manually manage invalidation, so not too worried about this being accurate. */
680const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000

Callers 1

Tested by

no test coverage detected