(options?: { signal: AbortSignal })
| 26 | * Fetches the latest Google Cloud Identity Platform certificates. |
| 27 | */ |
| 28 | export function fetchCertificates(options?: { signal: AbortSignal }) { |
| 29 | return got.get<Certificates>(certificatesURL, { |
| 30 | cache: certificatesCache, |
| 31 | resolveBodyOnly: true, |
| 32 | responseType: "json", |
| 33 | signal: options?.signal, |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | // Refresh certificates every 6 hours. |
| 38 | const cleanup = (() => { |
no outgoing calls
no test coverage detected