Class ExternalAccountClient (7.4.1)

Dummy class with no constructor. Developers are expected to use fromJSON.

Package

google-auth-library!

Constructors

(constructor)()

constructor();

Constructs a new instance of the ExternalAccountClient class

Methods

fromJSON(options, additionalOptions)

static fromJSON(options: ExternalAccountClientOptions, additionalOptions?: RefreshOptions): BaseExternalAccountClient | null;

This static method will instantiate the corresponding type of external account credential depending on the underlying credential source.

Parameters
NameDescription
options ExternalAccountClientOptions

The external account options object typically loaded from the external account JSON credential file.

additionalOptions RefreshOptions

Optional additional behavior customization options. These currently customize expiration threshold time and whether to retry on 401/403 API request errors. A BaseExternalAccountClient instance or null if the options provided do not correspond to an external account credential.

Returns
TypeDescription
BaseExternalAccountClient | null