( isNonInteractiveSession: boolean, )
| 590 | } |
| 591 | |
| 592 | export 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. */ |
| 607 | const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000 |
no test coverage detected