Class IdTokenClient (9.0.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
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>