async function getApplicationDefaultCredentials()

in src/auth.js [51:58]


async function getApplicationDefaultCredentials() {
  const auth = new GoogleAuth({
    scopes: 'https://www.googleapis.com/auth/cloud-platform',
    projectId: 'unused-project'
  });
  const client = await auth.getClient();
  return (await client.getAccessToken()).token;
}