( isNonInteractiveSession: boolean, )
| 639 | } |
| 640 | |
| 641 | export 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. */ |
| 656 | const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000 |
no test coverage detected