MCPcopy Create free account
hub / github.com/firebase/firebase-tools / getAuthClient

Function getAuthClient

src/requireAuth.ts:26–44  ·  view source on GitHub ↗

* Returns the auth client. * @param config options for the auth client.

(config: GoogleAuthOptions)

Source from the content-addressed store, hash-verified

24 * @param config options for the auth client.
25 */
26function getAuthClient(config: GoogleAuthOptions): GoogleAuth {
27 if (authClient) {
28 return authClient;
29 }
30
31 const authConfig: GoogleAuthOptions = {
32 ...config,
33 clientOptions: {
34 ...config.clientOptions,
35 transporterOptions: {
36 ...config.clientOptions?.transporterOptions,
37 agent: apiv2.noKeepAliveAgent,
38 },
39 },
40 };
41
42 authClient = new GoogleAuth(authConfig);
43 return authClient;
44}
45
46/**
47 * Retrieves and sets the access token for the current user.

Callers 1

autoAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…