Class AuthPlus (7.1.0)

Package

googleapis-common

Properties

AwsClient

AwsClient:typeofAwsClient;

Compute

Compute:typeofCompute;

ExternalAccountClient

ExternalAccountClient:typeofExternalAccountClient;

GoogleAuth

GoogleAuth:typeofGoogleAuth;

IdentityPoolClient

IdentityPoolClient:typeofIdentityPoolClient;

JWT

JWT:typeofJWT;

OAuth2

OAuth2:typeofOAuth2Client;

Methods

getClient(options)

getClient(options?:GoogleAuthOptions):Promise<Compute|JWT|UserRefreshClient|BaseExternalAccountClient|Impersonated>;

Override getClient(), memoizing an instance of auth for subsequent calls to getProjectId().

Parameter
NameDescription
optionsGoogleAuthOptions
Returns
TypeDescription
Promise<Compute |JWT |UserRefreshClient |BaseExternalAccountClient |Impersonated>

getProjectId()

getProjectId():Promise<string>;

Override getProjectId(), using the most recently configured auth instance when fetching projectId.

Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback:ProjectIdCallback):void;
Parameter
NameDescription
callbackProjectIdCallback
Returns
TypeDescription
void

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.