Class AuthPlus (7.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Package
googleapis-common
Properties
AwsClient
AwsClient
:
typeof
AwsClient
;
Compute
Compute
:
typeof
Compute
;
ExternalAccountClient
ExternalAccountClient
:
typeof
ExternalAccountClient
;
GoogleAuth
GoogleAuth
:
typeof
GoogleAuth
;
IdentityPoolClient
IdentityPoolClient
:
typeof
IdentityPoolClient
;
JWT
OAuth2
OAuth2
:
typeof
OAuth2Client
;
Methods
getClient(options)
getClient
(
options
?:
GoogleAuthOptions
)
:
Promise<Compute
|
JWT
|
UserRefreshClient
|
BaseExternalAccountClient
|
Impersonated
> ;
Override getClient(), memoizing an instance of auth for subsequent calls to getProjectId().
Promise
< Compute
| JWT
| UserRefreshClient
| BaseExternalAccountClient
| Impersonated
>
getProjectId()
getProjectId
()
:
Promise<string>
;
Override getProjectId(), using the most recently configured auth instance when fetching projectId.
getProjectId(callback)
getProjectId
(
callback
:
ProjectIdCallback
)
:
void
;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class AuthPlus (7.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.1.0 (latest)](/nodejs/docs/reference/googleapis-common/latest/googleapis-common/authplus)\n- [7.0.1](/nodejs/docs/reference/googleapis-common/7.0.1/googleapis-common/authplus)\n- [6.0.3](/nodejs/docs/reference/googleapis-common/6.0.3/googleapis-common/authplus)\n- [5.1.0](/nodejs/docs/reference/googleapis-common/5.1.0/googleapis-common/authplus)\n- [5.0.5](/nodejs/docs/reference/googleapis-common/5.0.5/googleapis-common/authplus) \n\nInheritance\n-----------\n\n[GoogleAuth](https://cloud.google.com/nodejs/docs/reference/google-auth-library/latest/google-auth-library/googleauth) \\\u003e AuthPlus\n\nPackage\n-------\n\n[googleapis-common](../overview.html)\n\nProperties\n----------\n\n### AwsClient\n\n AwsClient: typeof AwsClient;\n\n### Compute\n\n Compute: typeof Compute;\n\n### ExternalAccountClient\n\n ExternalAccountClient: typeof ExternalAccountClient;\n\n### GoogleAuth\n\n GoogleAuth: typeof GoogleAuth;\n\n### IdentityPoolClient\n\n IdentityPoolClient: typeof IdentityPoolClient;\n\n### JWT\n\n JWT: typeof JWT;\n\n### OAuth2\n\n OAuth2: typeof OAuth2Client;\n\nMethods\n-------\n\n### getClient(options)\n\n getClient(options?: GoogleAuthOptions): Promise\u003cCompute | JWT | UserRefreshClient | BaseExternalAccountClient | Impersonated\u003e;\n\nOverride getClient(), memoizing an instance of auth for subsequent calls to getProjectId().\n\n### getProjectId()\n\n getProjectId(): Promise\u003cstring\u003e;\n\nOverride getProjectId(), using the most recently configured auth instance when fetching projectId.\n\n### getProjectId(callback)\n\n getProjectId(callback: ProjectIdCallback): void;"]]