MCPcopy
hub / github.com/kriasoft/graphql-starter-kit / fetchCertificates

Function fetchCertificates

server/core/auth.ts:28–35  ·  view source on GitHub ↗
(options?: { signal: AbortSignal })

Source from the content-addressed store, hash-verified

26 * Fetches the latest Google Cloud Identity Platform certificates.
27 */
28export 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.
38const cleanup = (() => {

Callers 3

auth.test.tsFile · 0.90
auth.tsFile · 0.85
getIdTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected