Class IdTokenClient (7.9.1)

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;
Property Value
TypeDescription
IdTokenProvider

targetAudience

targetAudience: string;
Property Value
TypeDescription
string

Methods

getRequestMetadataAsync(url)

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