Package
google-auth-libraryConstructors
(constructor)(options)
constructor
(
options
?:
ComputeOptions
);
Google Compute Engine service account credentials.
Retrieve access token from the metadata server. See: https://developers.google.com/compute/docs/authentication
Properties
scopes
scopes
:
string
[];
Methods
fetchIdToken(targetAudience)
fetchIdToken
(
targetAudience
:
string
)
:
Promise<string>
;
Fetches an ID token.
Parameter
Name
Description
targetAudience
string
the audience for the fetched ID token.
Returns
Type
Description
Promise
<string>
refreshTokenNoCache(refreshToken)
protected
refreshTokenNoCache
(
refreshToken
?:
string
|
null
)
:
Promise<GetTokenResponse>
;
Refreshes the access token.
Parameter
Name
Description
refreshToken
string | null
Unused parameter
Returns
Type
Description
Promise
< GetTokenResponse
>
wrapError(e)
protected
wrapError
(
e
:
GaxiosError
)
:
void
;
Parameter
Name
Description
e
GaxiosError
Returns
Type
Description
void