( isNonInteractiveSession: boolean, )
| 663 | } |
| 664 | |
| 665 | export 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. */ |
| 680 | const DEFAULT_AWS_STS_TTL = 60 * 60 * 1000 |
no test coverage detected