Class IdTokenClient (7.13.0)

Inheritance

EventEmitter > 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
NameDescription
options IdTokenOptions

Properties

idTokenProvider

idTokenProvider: IdTokenProvider;

targetAudience

targetAudience: string;

Methods

getRequestMetadataAsync(url)

protected getRequestMetadataAsync(url?: string | null): Promise<RequestMetadataResponse>;
Parameter
NameDescription
url string | null
Returns
TypeDescription
Promise<RequestMetadataResponse>