firebase-admin 12.6.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/lib/app/core.d.ts +1 -2
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -2
- package/lib/app/credential-factory.js +5 -6
- package/lib/app/credential-internal.d.ts +37 -35
- package/lib/app/credential-internal.js +194 -294
- package/lib/app/credential.d.ts +1 -1
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +1 -1
- package/lib/app/firebase-app.js +1 -1
- package/lib/app/firebase-namespace.d.ts +1 -1
- package/lib/app/firebase-namespace.js +1 -1
- package/lib/app/index.d.ts +1 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +1 -1
- package/lib/app/lifecycle.js +6 -6
- package/lib/app-check/app-check-api-client-internal.d.ts +1 -1
- package/lib/app-check/app-check-api-client-internal.js +1 -1
- package/lib/app-check/app-check-api.d.ts +1 -1
- package/lib/app-check/app-check-api.js +1 -1
- package/lib/app-check/app-check-namespace.d.ts +1 -1
- package/lib/app-check/app-check-namespace.js +1 -1
- package/lib/app-check/app-check.d.ts +1 -1
- package/lib/app-check/app-check.js +1 -1
- package/lib/app-check/index.d.ts +1 -1
- package/lib/app-check/index.js +3 -3
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +3 -3
- package/lib/app-check/token-verifier.d.ts +1 -1
- package/lib/app-check/token-verifier.js +1 -1
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +1 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +5 -5
- package/lib/auth/auth-config.d.ts +41 -17
- package/lib/auth/auth-config.js +114 -27
- package/lib/auth/auth-namespace.d.ts +1 -1
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/auth.js +1 -1
- package/lib/auth/base-auth.d.ts +1 -1
- package/lib/auth/base-auth.js +3 -3
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +5 -6
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +3 -3
- package/lib/auth/project-config-manager.d.ts +1 -1
- package/lib/auth/project-config-manager.js +1 -1
- package/lib/auth/project-config.d.ts +8 -8
- package/lib/auth/project-config.js +9 -9
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +4 -4
- package/lib/auth/tenant.js +4 -4
- package/lib/auth/token-generator.d.ts +1 -2
- package/lib/auth/token-generator.js +3 -3
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +5 -5
- package/lib/auth/user-import-builder.d.ts +1 -2
- package/lib/auth/user-import-builder.js +3 -3
- package/lib/auth/user-record.d.ts +1 -1
- package/lib/auth/user-record.js +1 -1
- package/lib/credential/index.d.ts +1 -1
- package/lib/credential/index.js +1 -1
- package/lib/data-connect/data-connect-api-client-internal.d.ts +1 -1
- package/lib/data-connect/data-connect-api-client-internal.js +1 -1
- package/lib/data-connect/data-connect-api.d.ts +1 -1
- package/lib/data-connect/data-connect-api.js +1 -1
- package/lib/data-connect/data-connect.d.ts +1 -1
- package/lib/data-connect/data-connect.js +1 -1
- package/lib/data-connect/index.d.ts +1 -1
- package/lib/data-connect/index.js +3 -3
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -2
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +4 -4
- package/lib/default-namespace.d.ts +1 -1
- package/lib/default-namespace.js +1 -1
- package/lib/eventarc/cloudevent.d.ts +1 -1
- package/lib/eventarc/cloudevent.js +1 -1
- package/lib/eventarc/eventarc-client-internal.d.ts +1 -1
- package/lib/eventarc/eventarc-client-internal.js +1 -1
- package/lib/eventarc/eventarc-utils.d.ts +1 -1
- package/lib/eventarc/eventarc-utils.js +3 -3
- package/lib/eventarc/eventarc.d.ts +1 -1
- package/lib/eventarc/eventarc.js +1 -1
- package/lib/eventarc/index.d.ts +1 -1
- package/lib/eventarc/index.js +3 -3
- package/lib/extensions/extensions-api-client-internal.d.ts +1 -1
- package/lib/extensions/extensions-api-client-internal.js +1 -1
- package/lib/extensions/extensions-api.d.ts +1 -1
- package/lib/extensions/extensions-api.js +1 -1
- package/lib/extensions/extensions.d.ts +1 -1
- package/lib/extensions/extensions.js +1 -1
- package/lib/extensions/index.d.ts +1 -1
- package/lib/extensions/index.js +3 -3
- package/lib/firebase-namespace-api.d.ts +1 -1
- package/lib/firebase-namespace-api.js +1 -1
- package/lib/firestore/firestore-internal.d.ts +1 -1
- package/lib/firestore/firestore-internal.js +3 -3
- package/lib/firestore/firestore-namespace.d.ts +1 -1
- package/lib/firestore/firestore-namespace.js +1 -1
- package/lib/firestore/index.d.ts +1 -1
- package/lib/firestore/index.js +4 -4
- package/lib/functions/functions-api-client-internal.d.ts +1 -1
- package/lib/functions/functions-api-client-internal.js +7 -6
- package/lib/functions/functions-api.d.ts +1 -1
- package/lib/functions/functions-api.js +1 -1
- package/lib/functions/functions.d.ts +1 -1
- package/lib/functions/functions.js +1 -1
- package/lib/functions/index.d.ts +1 -1
- package/lib/functions/index.js +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +1 -1
- package/lib/installations/index.js +3 -3
- package/lib/installations/installations-namespace.d.ts +1 -1
- package/lib/installations/installations-namespace.js +1 -1
- package/lib/installations/installations-request-handler.d.ts +1 -1
- package/lib/installations/installations-request-handler.js +1 -1
- package/lib/installations/installations.d.ts +1 -1
- package/lib/installations/installations.js +1 -1
- package/lib/instance-id/index.d.ts +1 -1
- package/lib/instance-id/index.js +3 -3
- package/lib/instance-id/instance-id-namespace.d.ts +1 -1
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +1 -1
- package/lib/instance-id/instance-id.js +1 -1
- package/lib/machine-learning/index.d.ts +1 -1
- package/lib/machine-learning/index.js +3 -3
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +3 -3
- package/lib/machine-learning/machine-learning-namespace.d.ts +1 -1
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +1 -1
- package/lib/machine-learning/machine-learning.js +1 -1
- package/lib/messaging/index.d.ts +2 -2
- package/lib/messaging/index.js +3 -3
- package/lib/messaging/messaging-api-request-internal.d.ts +2 -12
- package/lib/messaging/messaging-api-request-internal.js +4 -38
- package/lib/messaging/messaging-api.d.ts +8 -94
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +1 -1
- package/lib/messaging/messaging-errors-internal.js +3 -4
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +4 -3
- package/lib/messaging/messaging-namespace.d.ts +2 -22
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +3 -149
- package/lib/messaging/messaging.js +2 -539
- package/lib/project-management/android-app.d.ts +1 -1
- package/lib/project-management/android-app.js +1 -1
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +1 -1
- package/lib/project-management/index.js +3 -3
- package/lib/project-management/ios-app.d.ts +1 -1
- package/lib/project-management/ios-app.js +1 -1
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -1
- package/lib/project-management/project-management-api-request-internal.js +3 -3
- package/lib/project-management/project-management-namespace.d.ts +1 -1
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +1 -1
- package/lib/project-management/project-management.js +1 -1
- package/lib/remote-config/condition-evaluator-internal.d.ts +1 -1
- package/lib/remote-config/condition-evaluator-internal.js +6 -14
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +3 -3
- package/lib/remote-config/internal/value-impl.d.ts +1 -1
- package/lib/remote-config/internal/value-impl.js +1 -1
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +1 -1
- package/lib/remote-config/remote-config-api.d.ts +1 -1
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +1 -1
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +1 -1
- package/lib/remote-config/remote-config.js +1 -1
- package/lib/security-rules/index.d.ts +1 -1
- package/lib/security-rules/index.js +3 -3
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +1 -1
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +1 -2
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +4 -4
- package/lib/storage/storage-namespace.d.ts +1 -1
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +1 -1
- package/lib/storage/storage.js +1 -1
- package/lib/storage/utils.d.ts +1 -1
- package/lib/storage/utils.js +2 -3
- package/lib/utils/api-request.d.ts +1 -5
- package/lib/utils/api-request.js +23 -8
- package/lib/utils/crypto-signer.d.ts +1 -2
- package/lib/utils/crypto-signer.js +3 -3
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +3 -4
- package/lib/utils/error.d.ts +1 -1
- package/lib/utils/error.js +1 -1
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +19 -16
- package/lib/utils/jwt.d.ts +1 -2
- package/lib/utils/jwt.js +5 -5
- package/lib/utils/validator.d.ts +1 -2
- package/lib/utils/validator.js +20 -21
- package/package.json +14 -13
- package/CHANGELOG.md +0 -4
- package/lib/messaging/batch-request-internal.d.ts +0 -55
- package/lib/messaging/batch-request-internal.js +0 -127
package/README.md
CHANGED
|
@@ -59,8 +59,7 @@ requests, code review feedback, and also pull requests.
|
|
|
59
59
|
|
|
60
60
|
## Supported Environments
|
|
61
61
|
|
|
62
|
-
We support Node.js
|
|
63
|
-
you to use Node.js 18 or higher as we will drop support for Node.js 14 and 16 in the next major version.
|
|
62
|
+
We support Node.js 18 and higher.
|
|
64
63
|
|
|
65
64
|
Please also note that the Admin SDK should only
|
|
66
65
|
be used in server-side/back-end environments controlled by the app developer.
|
package/lib/app/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v13.0.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
/// <reference types="node" />
|
|
19
18
|
import { Agent } from 'http';
|
|
20
19
|
import { Credential } from './credential';
|
|
21
20
|
/**
|
package/lib/app/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v13.0.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
/// <reference types="node" />
|
|
19
18
|
import { Agent } from 'http';
|
|
20
19
|
import { Credential, ServiceAccount } from './credential';
|
|
21
20
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v13.0.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.applicationDefault = applicationDefault;
|
|
21
|
+
exports.cert = cert;
|
|
22
|
+
exports.refreshToken = refreshToken;
|
|
23
|
+
exports.clearGlobalAppDefaultCred = clearGlobalAppDefaultCred;
|
|
21
24
|
const credential_internal_1 = require("./credential-internal");
|
|
22
25
|
let globalAppDefaultCred;
|
|
23
26
|
const globalCertCreds = {};
|
|
@@ -56,7 +59,6 @@ function applicationDefault(httpAgent) {
|
|
|
56
59
|
}
|
|
57
60
|
return globalAppDefaultCred;
|
|
58
61
|
}
|
|
59
|
-
exports.applicationDefault = applicationDefault;
|
|
60
62
|
/**
|
|
61
63
|
* Returns a credential created from the provided service account that grants
|
|
62
64
|
* admin access to Firebase services. This credential can be used in the call
|
|
@@ -104,7 +106,6 @@ function cert(serviceAccountPathOrObject, httpAgent) {
|
|
|
104
106
|
}
|
|
105
107
|
return globalCertCreds[stringifiedServiceAccount];
|
|
106
108
|
}
|
|
107
|
-
exports.cert = cert;
|
|
108
109
|
/**
|
|
109
110
|
* Returns a credential created from the provided refresh token that grants
|
|
110
111
|
* admin access to Firebase services. This credential can be used in the call
|
|
@@ -140,11 +141,9 @@ function refreshToken(refreshTokenPathOrObject, httpAgent) {
|
|
|
140
141
|
}
|
|
141
142
|
return globalRefreshTokenCreds[stringifiedRefreshToken];
|
|
142
143
|
}
|
|
143
|
-
exports.refreshToken = refreshToken;
|
|
144
144
|
/**
|
|
145
145
|
* Clears the global ADC cache. Exported for testing.
|
|
146
146
|
*/
|
|
147
147
|
function clearGlobalAppDefaultCred() {
|
|
148
148
|
globalAppDefaultCred = undefined;
|
|
149
149
|
}
|
|
150
|
-
exports.clearGlobalAppDefaultCred = clearGlobalAppDefaultCred;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v13.0.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2020 Google Inc.
|
|
@@ -15,63 +15,65 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
|
-
/// <reference types="node" />
|
|
19
18
|
import { Agent } from 'http';
|
|
20
19
|
import { Credential, GoogleOAuthAccessToken } from './credential';
|
|
20
|
+
/**
|
|
21
|
+
* Implementation of ADC that uses google-auth-library-nodejs.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ApplicationDefaultCredential implements Credential {
|
|
24
|
+
private readonly googleAuth;
|
|
25
|
+
private authClient;
|
|
26
|
+
private projectId?;
|
|
27
|
+
private quotaProjectId?;
|
|
28
|
+
private accountId?;
|
|
29
|
+
constructor(httpAgent?: Agent);
|
|
30
|
+
getAccessToken(): Promise<GoogleOAuthAccessToken>;
|
|
31
|
+
getProjectId(): Promise<string>;
|
|
32
|
+
getQuotaProjectId(): string | undefined;
|
|
33
|
+
isComputeEngineCredential(): Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* getIDToken returns a OIDC token from the compute metadata service
|
|
36
|
+
* that can be used to make authenticated calls to audience
|
|
37
|
+
* @param audience the URL the returned ID token will be used to call.
|
|
38
|
+
*/
|
|
39
|
+
getIDToken(audience: string): Promise<string>;
|
|
40
|
+
getServiceAccountEmail(): Promise<string>;
|
|
41
|
+
}
|
|
21
42
|
/**
|
|
22
43
|
* Implementation of Credential that uses a service account.
|
|
23
44
|
*/
|
|
24
45
|
export declare class ServiceAccountCredential implements Credential {
|
|
46
|
+
private readonly serviceAccountPathOrObject;
|
|
25
47
|
private readonly httpAgent?;
|
|
26
48
|
readonly implicit: boolean;
|
|
27
49
|
readonly projectId: string;
|
|
28
50
|
readonly privateKey: string;
|
|
29
51
|
readonly clientEmail: string;
|
|
30
|
-
private
|
|
52
|
+
private googleAuth;
|
|
53
|
+
private authClient;
|
|
31
54
|
/**
|
|
32
55
|
* Creates a new ServiceAccountCredential from the given parameters.
|
|
33
56
|
*
|
|
34
57
|
* @param serviceAccountPathOrObject - Service account json object or path to a service account json file.
|
|
35
58
|
* @param httpAgent - Optional http.Agent to use when calling the remote token server.
|
|
36
|
-
* @param implicit - An
|
|
59
|
+
* @param implicit - An optional boolean indicating whether this credential was implicitly discovered from the
|
|
37
60
|
* environment, as opposed to being explicitly specified by the developer.
|
|
38
61
|
*
|
|
39
62
|
* @constructor
|
|
40
63
|
*/
|
|
41
64
|
constructor(serviceAccountPathOrObject: string | object, httpAgent?: Agent | undefined, implicit?: boolean);
|
|
65
|
+
private getGoogleAuth;
|
|
42
66
|
getAccessToken(): Promise<GoogleOAuthAccessToken>;
|
|
43
|
-
private createAuthJwt_;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Implementation of Credential that gets access tokens from the metadata service available
|
|
47
|
-
* in the Google Cloud Platform. This authenticates the process as the default service account
|
|
48
|
-
* of an App Engine instance or Google Compute Engine machine.
|
|
49
|
-
*/
|
|
50
|
-
export declare class ComputeEngineCredential implements Credential {
|
|
51
|
-
private readonly httpClient;
|
|
52
|
-
private readonly httpAgent?;
|
|
53
|
-
private projectId?;
|
|
54
|
-
private accountId?;
|
|
55
|
-
constructor(httpAgent?: Agent);
|
|
56
|
-
getAccessToken(): Promise<GoogleOAuthAccessToken>;
|
|
57
|
-
/**
|
|
58
|
-
* getIDToken returns a OIDC token from the compute metadata service
|
|
59
|
-
* that can be used to make authenticated calls to audience
|
|
60
|
-
* @param audience the URL the returned ID token will be used to call.
|
|
61
|
-
*/
|
|
62
|
-
getIDToken(audience: string): Promise<string>;
|
|
63
|
-
getProjectId(): Promise<string>;
|
|
64
|
-
getServiceAccountEmail(): Promise<string>;
|
|
65
|
-
private buildRequest;
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* Implementation of Credential that gets access tokens from refresh tokens.
|
|
69
70
|
*/
|
|
70
71
|
export declare class RefreshTokenCredential implements Credential {
|
|
72
|
+
private readonly refreshTokenPathOrObject;
|
|
71
73
|
private readonly httpAgent?;
|
|
72
74
|
readonly implicit: boolean;
|
|
73
|
-
private
|
|
74
|
-
private
|
|
75
|
+
private googleAuth;
|
|
76
|
+
private authClient;
|
|
75
77
|
/**
|
|
76
78
|
* Creates a new RefreshTokenCredential from the given parameters.
|
|
77
79
|
*
|
|
@@ -84,16 +86,18 @@ export declare class RefreshTokenCredential implements Credential {
|
|
|
84
86
|
* @constructor
|
|
85
87
|
*/
|
|
86
88
|
constructor(refreshTokenPathOrObject: string | object, httpAgent?: Agent | undefined, implicit?: boolean);
|
|
89
|
+
private getGoogleAuth;
|
|
87
90
|
getAccessToken(): Promise<GoogleOAuthAccessToken>;
|
|
88
91
|
}
|
|
89
92
|
/**
|
|
90
93
|
* Implementation of Credential that uses impersonated service account.
|
|
91
94
|
*/
|
|
92
95
|
export declare class ImpersonatedServiceAccountCredential implements Credential {
|
|
96
|
+
private readonly impersonatedServiceAccountPathOrObject;
|
|
93
97
|
private readonly httpAgent?;
|
|
94
98
|
readonly implicit: boolean;
|
|
95
|
-
private
|
|
96
|
-
private
|
|
99
|
+
private googleAuth;
|
|
100
|
+
private authClient;
|
|
97
101
|
/**
|
|
98
102
|
* Creates a new ImpersonatedServiceAccountCredential from the given parameters.
|
|
99
103
|
*
|
|
@@ -106,13 +110,11 @@ export declare class ImpersonatedServiceAccountCredential implements Credential
|
|
|
106
110
|
* @constructor
|
|
107
111
|
*/
|
|
108
112
|
constructor(impersonatedServiceAccountPathOrObject: string | object, httpAgent?: Agent | undefined, implicit?: boolean);
|
|
113
|
+
private getGoogleAuth;
|
|
109
114
|
getAccessToken(): Promise<GoogleOAuthAccessToken>;
|
|
110
115
|
}
|
|
111
116
|
/**
|
|
112
|
-
* Checks if the given credential was loaded via the application default credentials mechanism.
|
|
113
|
-
* includes all ComputeEngineCredential instances, and the ServiceAccountCredential and RefreshTokenCredential
|
|
114
|
-
* instances that were loaded from well-known files or environment variables, rather than being explicitly
|
|
115
|
-
* instantiated.
|
|
117
|
+
* Checks if the given credential was loaded via the application default credentials mechanism.
|
|
116
118
|
*
|
|
117
119
|
* @param credential - The credential instance to check.
|
|
118
120
|
*/
|