Compute

Compute

new Compute()

Google Compute Engine service account credentials.

Retrieve access token from the metadata server. See: https://cloud.google.com/compute/docs/access/authenticate-workloads#applications

Methods

(async) fetchIdToken(targetAudience)

Fetches an ID token.

Parameters:
Name Type Description
targetAudience

the audience for the fetched ID token.

(async) refreshTokenNoCache(refreshToken)

Refreshes the access token.

Parameters:
Name Type Description
refreshToken

Unused parameter