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