Class IdTokenClient (7.3.0)

Inheritance

AuthClient > OAuth2Client > IdTokenClient

Package

google-auth-library!

Constructors

(constructor)(options)

constructor(options: IdTokenOptions);

Google ID Token client

Retrieve access token from the metadata server. See: https://developers.google.com/compute/docs/authentication

Parameter
Name Description
options IdTokenOptions

Properties

idTokenProvider

idTokenProvider: IdTokenProvider;
Property Value
Type Description
IdTokenProvider

targetAudience

targetAudience: string;
Property Value
Type Description
string

Methods

getRequestMetadataAsync(url)

protected getRequestMetadataAsync(url?: string | null): Promise<RequestMetadataResponse>;
Parameter
Name Description
url string | null
Returns
Type Description
Promise<RequestMetadataResponse>