firebase-admin 9.100.0-alpha.0 → 10.0.2
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 +7 -3
- package/lib/app/core.d.ts +15 -22
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +17 -33
- package/lib/app/credential-factory.js +17 -33
- package/lib/app/credential-internal.d.ts +10 -9
- package/lib/app/credential-internal.js +15 -13
- package/lib/app/credential.d.ts +3 -9
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +6 -30
- package/lib/app/firebase-app.js +72 -216
- package/lib/app/firebase-namespace.d.ts +28 -34
- package/lib/app/firebase-namespace.js +119 -99
- package/lib/app/index.d.ts +6 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +24 -3
- package/lib/app/lifecycle.js +119 -25
- package/lib/app-check/app-check-api-client-internal.d.ts +32 -0
- package/lib/app-check/app-check-api-client-internal.js +197 -0
- package/lib/app-check/app-check-api.d.ts +95 -0
- package/lib/app-check/app-check-api.js +19 -0
- package/lib/app-check/app-check-namespace.d.ts +65 -0
- package/lib/app-check/app-check-namespace.js +18 -0
- package/lib/app-check/app-check.d.ts +49 -0
- package/lib/app-check/app-check.js +82 -0
- package/lib/app-check/index.d.ts +53 -0
- package/lib/app-check/index.js +63 -0
- package/lib/app-check/token-generator.d.ts +25 -0
- package/lib/app-check/token-generator.js +159 -0
- package/lib/app-check/token-verifier.d.ts +17 -0
- package/lib/app-check/token-verifier.js +151 -0
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +2 -2
- package/lib/auth/auth-api-request.d.ts +28 -32
- package/lib/auth/auth-api-request.js +167 -125
- package/lib/auth/auth-config.d.ts +123 -21
- package/lib/auth/auth-config.js +85 -34
- package/lib/auth/auth-namespace.d.ts +157 -4
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +5 -3
- package/lib/auth/auth.js +6 -4
- package/lib/auth/base-auth.d.ts +134 -116
- package/lib/auth/base-auth.js +213 -143
- package/lib/auth/identifier.d.ts +5 -5
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +10 -5
- package/lib/auth/index.js +9 -4
- package/lib/auth/tenant-manager.d.ts +19 -19
- package/lib/auth/tenant-manager.js +21 -25
- package/lib/auth/tenant.d.ts +14 -5
- package/lib/auth/tenant.js +19 -11
- package/lib/auth/token-generator.d.ts +7 -108
- package/lib/auth/token-generator.js +52 -145
- package/lib/auth/token-verifier.d.ts +3 -4
- package/lib/auth/token-verifier.js +96 -145
- package/lib/auth/user-import-builder.d.ts +11 -11
- package/lib/auth/user-import-builder.js +9 -9
- package/lib/auth/user-record.d.ts +23 -15
- package/lib/auth/user-record.js +30 -20
- package/lib/credential/index.d.ts +18 -35
- package/lib/credential/index.js +17 -33
- package/lib/database/database-namespace.d.ts +39 -10
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +16 -6
- package/lib/database/database.js +61 -6
- package/lib/database/index.d.ts +19 -18
- package/lib/database/index.js +21 -23
- package/lib/default-namespace.d.ts +7 -1
- package/lib/default-namespace.js +4 -4
- package/lib/esm/app/index.js +10 -0
- package/lib/esm/app-check/index.js +4 -0
- package/lib/esm/auth/index.js +14 -0
- package/lib/esm/database/index.js +6 -0
- package/lib/esm/firestore/index.js +24 -0
- package/lib/esm/installations/index.js +4 -0
- package/lib/esm/instance-id/index.js +4 -0
- package/lib/esm/machine-learning/index.js +5 -0
- package/lib/esm/messaging/index.js +4 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/project-management/index.js +8 -0
- package/lib/esm/remote-config/index.js +4 -0
- package/lib/esm/security-rules/index.js +6 -0
- package/lib/esm/storage/index.js +4 -0
- package/lib/firebase-namespace-api.d.ts +12 -6
- package/lib/firebase-namespace-api.js +5 -1
- package/lib/firestore/firestore-internal.d.ts +2 -2
- package/lib/firestore/firestore-internal.js +2 -2
- package/lib/firestore/firestore-namespace.d.ts +6 -1
- package/lib/firestore/firestore-namespace.js +2 -1
- package/lib/firestore/index.d.ts +36 -4
- package/lib/firestore/index.js +29 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +52 -0
- package/lib/installations/index.js +62 -0
- package/lib/installations/installations-namespace.d.ts +55 -0
- package/lib/installations/installations-namespace.js +18 -0
- package/lib/{instance-id/instance-id-request-internal.d.ts → installations/installations-request-handler.d.ts} +8 -8
- package/lib/{instance-id/instance-id-request-internal.js → installations/installations-request-handler.js} +23 -23
- package/lib/installations/installations.d.ts +38 -0
- package/lib/installations/installations.js +63 -0
- package/lib/instance-id/index.d.ts +20 -9
- package/lib/instance-id/index.js +20 -9
- package/lib/instance-id/instance-id-namespace.d.ts +9 -8
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +8 -6
- package/lib/instance-id/instance-id.js +20 -11
- package/lib/machine-learning/index.d.ts +29 -27
- package/lib/machine-learning/index.js +29 -27
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +4 -4
- package/lib/machine-learning/machine-learning-namespace.d.ts +33 -8
- 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 +19 -19
- package/lib/machine-learning/machine-learning.js +20 -20
- package/lib/messaging/batch-request-internal.d.ts +3 -3
- package/lib/messaging/batch-request-internal.js +9 -9
- package/lib/messaging/index.d.ts +11 -9
- package/lib/messaging/index.js +11 -9
- package/lib/messaging/messaging-api-request-internal.d.ts +8 -8
- package/lib/messaging/messaging-api-request-internal.js +8 -8
- package/lib/messaging/messaging-api.d.ts +79 -75
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +5 -5
- package/lib/messaging/messaging-errors-internal.js +7 -7
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +6 -31
- package/lib/messaging/messaging-namespace.d.ts +105 -8
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +70 -86
- package/lib/messaging/messaging.js +76 -89
- package/lib/project-management/android-app.d.ts +11 -12
- package/lib/project-management/android-app.js +13 -14
- 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 +11 -9
- package/lib/project-management/index.js +11 -9
- package/lib/project-management/ios-app.d.ts +6 -7
- package/lib/project-management/ios-app.js +6 -7
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -80
- package/lib/project-management/project-management-api-request-internal.js +14 -14
- package/lib/project-management/project-management-namespace.d.ts +31 -9
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +18 -21
- package/lib/project-management/project-management.js +19 -22
- package/lib/remote-config/index.d.ts +12 -10
- package/lib/remote-config/index.js +11 -9
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +2 -2
- package/lib/remote-config/remote-config-api.d.ts +12 -2
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +50 -9
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +19 -21
- package/lib/remote-config/remote-config.js +25 -25
- package/lib/security-rules/index.d.ts +12 -10
- package/lib/security-rules/index.js +12 -10
- 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 +43 -28
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +39 -42
- package/lib/security-rules/security-rules.js +38 -39
- package/lib/storage/index.d.ts +9 -7
- package/lib/storage/index.js +9 -7
- package/lib/storage/storage-namespace.d.ts +7 -6
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +3 -3
- package/lib/storage/storage.js +14 -4
- package/lib/utils/api-request.d.ts +24 -24
- package/lib/utils/api-request.js +25 -25
- package/lib/utils/crypto-signer.d.ts +128 -0
- package/lib/utils/crypto-signer.js +237 -0
- package/lib/utils/deep-copy.d.ts +6 -6
- package/lib/utils/deep-copy.js +6 -6
- package/lib/utils/error.d.ts +69 -36
- package/lib/utils/error.js +98 -43
- package/lib/utils/index.d.ts +30 -19
- package/lib/utils/index.js +47 -20
- package/lib/utils/jwt.d.ts +131 -0
- package/lib/utils/jwt.js +355 -0
- package/lib/utils/validator.d.ts +37 -37
- package/lib/utils/validator.js +37 -37
- package/package.json +126 -53
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2018 Google Inc.
|
|
4
4
|
*
|
|
@@ -20,7 +20,7 @@ import { UpdateMultiFactorInfoRequest, MultiFactorUpdateSettings } from './auth-
|
|
|
20
20
|
export declare type HashAlgorithmType = 'SCRYPT' | 'STANDARD_SCRYPT' | 'HMAC_SHA512' | 'HMAC_SHA256' | 'HMAC_SHA1' | 'HMAC_MD5' | 'MD5' | 'PBKDF_SHA1' | 'BCRYPT' | 'PBKDF2_SHA256' | 'SHA512' | 'SHA256' | 'SHA1';
|
|
21
21
|
/**
|
|
22
22
|
* Interface representing the user import options needed for
|
|
23
|
-
* {@link
|
|
23
|
+
* {@link BaseAuth.importUsers} method. This is used to
|
|
24
24
|
* provide the password hashing algorithm information.
|
|
25
25
|
*/
|
|
26
26
|
export interface UserImportOptions {
|
|
@@ -77,7 +77,7 @@ export interface UserImportOptions {
|
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Interface representing a user to import to Firebase Auth via the
|
|
80
|
-
* {@link
|
|
80
|
+
* {@link BaseAuth.importUsers} method.
|
|
81
81
|
*/
|
|
82
82
|
export interface UserImportRecord {
|
|
83
83
|
/**
|
|
@@ -127,7 +127,7 @@ export interface UserImportRecord {
|
|
|
127
127
|
/**
|
|
128
128
|
* The buffer of bytes representing the user's hashed password.
|
|
129
129
|
* When a user is to be imported with a password hash,
|
|
130
|
-
* {@link
|
|
130
|
+
* {@link UserImportOptions} are required to be
|
|
131
131
|
* specified to identify the hashing algorithm used to generate this hash.
|
|
132
132
|
*/
|
|
133
133
|
passwordHash?: Buffer;
|
|
@@ -192,7 +192,7 @@ export interface UserProviderRequest {
|
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* Interface representing the response from the
|
|
195
|
-
* {@link
|
|
195
|
+
* {@link BaseAuth.importUsers} method for batch
|
|
196
196
|
* importing users to Firebase Auth.
|
|
197
197
|
*/
|
|
198
198
|
export interface UserImportResult {
|
|
@@ -262,8 +262,8 @@ export interface UploadAccountRequest extends UploadAccountOptions {
|
|
|
262
262
|
export declare type ValidatorFunction = (data: UploadAccountUser) => void;
|
|
263
263
|
/**
|
|
264
264
|
* Converts a client format second factor object to server format.
|
|
265
|
-
* @param multiFactorInfo The client format second factor.
|
|
266
|
-
* @
|
|
265
|
+
* @param multiFactorInfo - The client format second factor.
|
|
266
|
+
* @returns The corresponding AuthFactorInfo server request format.
|
|
267
267
|
*/
|
|
268
268
|
export declare function convertMultiFactorInfoToServerFormat(multiFactorInfo: UpdateMultiFactorInfoRequest): AuthFactorInfo;
|
|
269
269
|
/**
|
|
@@ -286,13 +286,13 @@ export declare class UserImportBuilder {
|
|
|
286
286
|
constructor(users: UserImportRecord[], options?: UserImportOptions, userRequestValidator?: ValidatorFunction);
|
|
287
287
|
/**
|
|
288
288
|
* Returns the corresponding constructed uploadAccount request.
|
|
289
|
-
* @
|
|
289
|
+
* @returns {UploadAccountRequest} The constructed uploadAccount request.
|
|
290
290
|
*/
|
|
291
291
|
buildRequest(): UploadAccountRequest;
|
|
292
292
|
/**
|
|
293
293
|
* Populates the UserImportResult using the client side detected errors and the server
|
|
294
294
|
* side returned errors.
|
|
295
|
-
* @
|
|
295
|
+
* @returns {UserImportResult} The user import result based on the returned failed
|
|
296
296
|
* uploadAccount response.
|
|
297
297
|
*/
|
|
298
298
|
buildResponse(failedUploads: Array<{
|
|
@@ -304,7 +304,7 @@ export declare class UserImportBuilder {
|
|
|
304
304
|
* Throws an error whenever an invalid or missing options is detected.
|
|
305
305
|
* @param {UserImportOptions} options The UserImportOptions.
|
|
306
306
|
* @param {boolean} requiresHashOptions Whether to require hash options.
|
|
307
|
-
* @
|
|
307
|
+
* @returns {UploadAccountOptions} The populated UploadAccount options.
|
|
308
308
|
*/
|
|
309
309
|
private populateOptions;
|
|
310
310
|
/**
|
|
@@ -315,7 +315,7 @@ export declare class UserImportBuilder {
|
|
|
315
315
|
* @param {UserImportRecord[]} users The UserImportRecords to convert to UnploadAccountUser
|
|
316
316
|
* objects.
|
|
317
317
|
* @param {ValidatorFunction=} userValidator The user validator function.
|
|
318
|
-
* @
|
|
318
|
+
* @returns {UploadAccountUser[]} The populated uploadAccount users.
|
|
319
319
|
*/
|
|
320
320
|
private populateUsers;
|
|
321
321
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2018 Google Inc.
|
|
@@ -23,8 +23,8 @@ var validator = require("../utils/validator");
|
|
|
23
23
|
var error_1 = require("../utils/error");
|
|
24
24
|
/**
|
|
25
25
|
* Converts a client format second factor object to server format.
|
|
26
|
-
* @param multiFactorInfo The client format second factor.
|
|
27
|
-
* @
|
|
26
|
+
* @param multiFactorInfo - The client format second factor.
|
|
27
|
+
* @returns The corresponding AuthFactorInfo server request format.
|
|
28
28
|
*/
|
|
29
29
|
function convertMultiFactorInfoToServerFormat(multiFactorInfo) {
|
|
30
30
|
var enrolledAt;
|
|
@@ -67,7 +67,7 @@ function isPhoneFactor(multiFactorInfo) {
|
|
|
67
67
|
/**
|
|
68
68
|
* @param {any} obj The object to check for number field within.
|
|
69
69
|
* @param {string} key The entry key.
|
|
70
|
-
* @
|
|
70
|
+
* @returns {number} The corresponding number if available. Otherwise, NaN.
|
|
71
71
|
*/
|
|
72
72
|
function getNumberField(obj, key) {
|
|
73
73
|
if (typeof obj[key] !== 'undefined' && obj[key] !== null) {
|
|
@@ -80,7 +80,7 @@ function getNumberField(obj, key) {
|
|
|
80
80
|
* fields are provided.
|
|
81
81
|
* @param {UserImportRecord} user The UserImportRecord to conver to UploadAccountUser.
|
|
82
82
|
* @param {ValidatorFunction=} userValidator The user validator function.
|
|
83
|
-
* @
|
|
83
|
+
* @returns {UploadAccountUser} The corresponding UploadAccountUser to return.
|
|
84
84
|
*/
|
|
85
85
|
function populateUploadAccountUser(user, userValidator) {
|
|
86
86
|
var result = {
|
|
@@ -176,7 +176,7 @@ var UserImportBuilder = /** @class */ (function () {
|
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* Returns the corresponding constructed uploadAccount request.
|
|
179
|
-
* @
|
|
179
|
+
* @returns {UploadAccountRequest} The constructed uploadAccount request.
|
|
180
180
|
*/
|
|
181
181
|
UserImportBuilder.prototype.buildRequest = function () {
|
|
182
182
|
var users = this.validatedUsers.map(function (user) {
|
|
@@ -187,7 +187,7 @@ var UserImportBuilder = /** @class */ (function () {
|
|
|
187
187
|
/**
|
|
188
188
|
* Populates the UserImportResult using the client side detected errors and the server
|
|
189
189
|
* side returned errors.
|
|
190
|
-
* @
|
|
190
|
+
* @returns {UserImportResult} The user import result based on the returned failed
|
|
191
191
|
* uploadAccount response.
|
|
192
192
|
*/
|
|
193
193
|
UserImportBuilder.prototype.buildResponse = function (failedUploads) {
|
|
@@ -219,7 +219,7 @@ var UserImportBuilder = /** @class */ (function () {
|
|
|
219
219
|
* Throws an error whenever an invalid or missing options is detected.
|
|
220
220
|
* @param {UserImportOptions} options The UserImportOptions.
|
|
221
221
|
* @param {boolean} requiresHashOptions Whether to require hash options.
|
|
222
|
-
* @
|
|
222
|
+
* @returns {UploadAccountOptions} The populated UploadAccount options.
|
|
223
223
|
*/
|
|
224
224
|
UserImportBuilder.prototype.populateOptions = function (options, requiresHashOptions) {
|
|
225
225
|
var populatedOptions;
|
|
@@ -356,7 +356,7 @@ var UserImportBuilder = /** @class */ (function () {
|
|
|
356
356
|
* @param {UserImportRecord[]} users The UserImportRecords to convert to UnploadAccountUser
|
|
357
357
|
* objects.
|
|
358
358
|
* @param {ValidatorFunction=} userValidator The user validator function.
|
|
359
|
-
* @
|
|
359
|
+
* @returns {UploadAccountUser[]} The populated uploadAccount users.
|
|
360
360
|
*/
|
|
361
361
|
UserImportBuilder.prototype.populateUsers = function (users, userValidator) {
|
|
362
362
|
var _this = this;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google Inc.
|
|
@@ -52,7 +52,7 @@ export interface GetAccountInfoUserResponse {
|
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Interface representing the common properties of a user
|
|
55
|
+
* Interface representing the common properties of a user-enrolled second factor.
|
|
56
56
|
*/
|
|
57
57
|
export declare abstract class MultiFactorInfo {
|
|
58
58
|
/**
|
|
@@ -72,18 +72,20 @@ export declare abstract class MultiFactorInfo {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly enrollmentTime?: string;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Returns a JSON-serializable representation of this object.
|
|
76
|
+
*
|
|
77
|
+
* @returns A JSON-serializable representation of this object.
|
|
76
78
|
*/
|
|
77
79
|
toJSON(): object;
|
|
78
80
|
/**
|
|
79
81
|
* Initializes the MultiFactorInfo object using the provided server response.
|
|
80
82
|
*
|
|
81
|
-
* @param response The server side response.
|
|
83
|
+
* @param response - The server side response.
|
|
82
84
|
*/
|
|
83
85
|
private initFromServerResponse;
|
|
84
86
|
}
|
|
85
87
|
/**
|
|
86
|
-
* Interface representing a phone specific user
|
|
88
|
+
* Interface representing a phone specific user-enrolled second factor.
|
|
87
89
|
*/
|
|
88
90
|
export declare class PhoneMultiFactorInfo extends MultiFactorInfo {
|
|
89
91
|
/**
|
|
@@ -105,7 +107,9 @@ export declare class MultiFactorSettings {
|
|
|
105
107
|
*/
|
|
106
108
|
enrolledFactors: MultiFactorInfo[];
|
|
107
109
|
/**
|
|
108
|
-
*
|
|
110
|
+
* Returns a JSON-serializable representation of this multi-factor object.
|
|
111
|
+
*
|
|
112
|
+
* @returns A JSON-serializable representation of this multi-factor object.
|
|
109
113
|
*/
|
|
110
114
|
toJSON(): object;
|
|
111
115
|
}
|
|
@@ -128,7 +132,9 @@ export declare class UserMetadata {
|
|
|
128
132
|
*/
|
|
129
133
|
readonly lastRefreshTime?: string | null;
|
|
130
134
|
/**
|
|
131
|
-
*
|
|
135
|
+
* Returns a JSON-serializable representation of this object.
|
|
136
|
+
*
|
|
137
|
+
* @returns A JSON-serializable representation of this object.
|
|
132
138
|
*/
|
|
133
139
|
toJSON(): object;
|
|
134
140
|
}
|
|
@@ -162,7 +168,9 @@ export declare class UserInfo {
|
|
|
162
168
|
*/
|
|
163
169
|
readonly phoneNumber: string;
|
|
164
170
|
/**
|
|
165
|
-
*
|
|
171
|
+
* Returns a JSON-serializable representation of this object.
|
|
172
|
+
*
|
|
173
|
+
* @returns A JSON-serializable representation of this object.
|
|
166
174
|
*/
|
|
167
175
|
toJSON(): object;
|
|
168
176
|
}
|
|
@@ -213,7 +221,7 @@ export declare class UserRecord {
|
|
|
213
221
|
* when uploading this user, as is typical when migrating from another Auth
|
|
214
222
|
* system, this will be an empty string. If no password is set, this is
|
|
215
223
|
* null. This is only available when the user is obtained from
|
|
216
|
-
* {@link
|
|
224
|
+
* {@link BaseAuth.listUsers}.
|
|
217
225
|
*/
|
|
218
226
|
readonly passwordHash?: string;
|
|
219
227
|
/**
|
|
@@ -221,15 +229,13 @@ export declare class UserRecord {
|
|
|
221
229
|
* algorithm (SCRYPT) is used. If a different hashing algorithm had been used to
|
|
222
230
|
* upload this user, typical when migrating from another Auth system, this will
|
|
223
231
|
* be an empty string. If no password is set, this is null. This is only
|
|
224
|
-
* available when the user is obtained from
|
|
225
|
-
* {@link auth.Auth.listUsers `listUsers()`}.
|
|
232
|
+
* available when the user is obtained from {@link BaseAuth.listUsers}.
|
|
226
233
|
*/
|
|
227
234
|
readonly passwordSalt?: string;
|
|
228
235
|
/**
|
|
229
236
|
* The user's custom claims object if available, typically used to define
|
|
230
237
|
* user roles and propagated to an authenticated user's ID token.
|
|
231
|
-
* This is set via
|
|
232
|
-
* {@link auth.Auth.setCustomUserClaims `setCustomUserClaims()`}
|
|
238
|
+
* This is set via {@link BaseAuth.setCustomUserClaims}
|
|
233
239
|
*/
|
|
234
240
|
readonly customClaims?: {
|
|
235
241
|
[key: string]: any;
|
|
@@ -241,7 +247,7 @@ export declare class UserRecord {
|
|
|
241
247
|
/**
|
|
242
248
|
* The date the user's tokens are valid after, formatted as a UTC string.
|
|
243
249
|
* This is updated every time the user's refresh token are revoked either
|
|
244
|
-
* from the {@link
|
|
250
|
+
* from the {@link BaseAuth.revokeRefreshTokens}
|
|
245
251
|
* API or from the Firebase Auth backend on big account changes (password
|
|
246
252
|
* resets, password or email updates, etc).
|
|
247
253
|
*/
|
|
@@ -251,7 +257,9 @@ export declare class UserRecord {
|
|
|
251
257
|
*/
|
|
252
258
|
readonly multiFactor?: MultiFactorSettings;
|
|
253
259
|
/**
|
|
254
|
-
*
|
|
260
|
+
* Returns a JSON-serializable representation of this object.
|
|
261
|
+
*
|
|
262
|
+
* @returns A JSON-serializable representation of this object.
|
|
255
263
|
*/
|
|
256
264
|
toJSON(): object;
|
|
257
265
|
}
|
package/lib/auth/user-record.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -42,8 +42,8 @@ var B64_REDACTED = Buffer.from('REDACTED').toString('base64');
|
|
|
42
42
|
/**
|
|
43
43
|
* Parses a time stamp string or number and returns the corresponding date if valid.
|
|
44
44
|
*
|
|
45
|
-
* @param
|
|
46
|
-
* @
|
|
45
|
+
* @param time - The unix timestamp string or number in milliseconds.
|
|
46
|
+
* @returns The corresponding date as a UTC string, if valid. Otherwise, null.
|
|
47
47
|
*/
|
|
48
48
|
function parseDate(time) {
|
|
49
49
|
try {
|
|
@@ -62,13 +62,13 @@ var MultiFactorId;
|
|
|
62
62
|
MultiFactorId["Phone"] = "phone";
|
|
63
63
|
})(MultiFactorId || (MultiFactorId = {}));
|
|
64
64
|
/**
|
|
65
|
-
* Interface representing the common properties of a user
|
|
65
|
+
* Interface representing the common properties of a user-enrolled second factor.
|
|
66
66
|
*/
|
|
67
67
|
var MultiFactorInfo = /** @class */ (function () {
|
|
68
68
|
/**
|
|
69
69
|
* Initializes the MultiFactorInfo object using the server side response.
|
|
70
70
|
*
|
|
71
|
-
* @param response The server side response.
|
|
71
|
+
* @param response - The server side response.
|
|
72
72
|
* @constructor
|
|
73
73
|
* @internal
|
|
74
74
|
*/
|
|
@@ -79,7 +79,7 @@ var MultiFactorInfo = /** @class */ (function () {
|
|
|
79
79
|
* Initializes the MultiFactorInfo associated subclass using the server side.
|
|
80
80
|
* If no MultiFactorInfo is associated with the response, null is returned.
|
|
81
81
|
*
|
|
82
|
-
* @param response The server side response.
|
|
82
|
+
* @param response - The server side response.
|
|
83
83
|
* @internal
|
|
84
84
|
*/
|
|
85
85
|
MultiFactorInfo.initMultiFactorInfo = function (response) {
|
|
@@ -94,7 +94,9 @@ var MultiFactorInfo = /** @class */ (function () {
|
|
|
94
94
|
return multiFactorInfo;
|
|
95
95
|
};
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Returns a JSON-serializable representation of this object.
|
|
98
|
+
*
|
|
99
|
+
* @returns A JSON-serializable representation of this object.
|
|
98
100
|
*/
|
|
99
101
|
MultiFactorInfo.prototype.toJSON = function () {
|
|
100
102
|
return {
|
|
@@ -107,7 +109,7 @@ var MultiFactorInfo = /** @class */ (function () {
|
|
|
107
109
|
/**
|
|
108
110
|
* Initializes the MultiFactorInfo object using the provided server response.
|
|
109
111
|
*
|
|
110
|
-
* @param response The server side response.
|
|
112
|
+
* @param response - The server side response.
|
|
111
113
|
*/
|
|
112
114
|
MultiFactorInfo.prototype.initFromServerResponse = function (response) {
|
|
113
115
|
var factorId = response && this.getFactorId(response);
|
|
@@ -132,14 +134,14 @@ var MultiFactorInfo = /** @class */ (function () {
|
|
|
132
134
|
}());
|
|
133
135
|
exports.MultiFactorInfo = MultiFactorInfo;
|
|
134
136
|
/**
|
|
135
|
-
* Interface representing a phone specific user
|
|
137
|
+
* Interface representing a phone specific user-enrolled second factor.
|
|
136
138
|
*/
|
|
137
139
|
var PhoneMultiFactorInfo = /** @class */ (function (_super) {
|
|
138
140
|
__extends(PhoneMultiFactorInfo, _super);
|
|
139
141
|
/**
|
|
140
142
|
* Initializes the PhoneMultiFactorInfo object using the server side response.
|
|
141
143
|
*
|
|
142
|
-
* @param response The server side response.
|
|
144
|
+
* @param response - The server side response.
|
|
143
145
|
* @constructor
|
|
144
146
|
* @internal
|
|
145
147
|
*/
|
|
@@ -159,8 +161,8 @@ var PhoneMultiFactorInfo = /** @class */ (function (_super) {
|
|
|
159
161
|
/**
|
|
160
162
|
* Returns the factor ID based on the response provided.
|
|
161
163
|
*
|
|
162
|
-
* @param response The server side response.
|
|
163
|
-
* @
|
|
164
|
+
* @param response - The server side response.
|
|
165
|
+
* @returns The multi-factor ID associated with the provided response. If the response is
|
|
164
166
|
* not associated with any known multi-factor ID, null is returned.
|
|
165
167
|
*
|
|
166
168
|
* @internal
|
|
@@ -178,7 +180,7 @@ var MultiFactorSettings = /** @class */ (function () {
|
|
|
178
180
|
/**
|
|
179
181
|
* Initializes the MultiFactor object using the server side or JWT format response.
|
|
180
182
|
*
|
|
181
|
-
* @param response The server side response.
|
|
183
|
+
* @param response - The server side response.
|
|
182
184
|
* @constructor
|
|
183
185
|
* @internal
|
|
184
186
|
*/
|
|
@@ -199,7 +201,9 @@ var MultiFactorSettings = /** @class */ (function () {
|
|
|
199
201
|
utils.addReadonlyGetter(this, 'enrolledFactors', Object.freeze(parsedEnrolledFactors));
|
|
200
202
|
}
|
|
201
203
|
/**
|
|
202
|
-
*
|
|
204
|
+
* Returns a JSON-serializable representation of this multi-factor object.
|
|
205
|
+
*
|
|
206
|
+
* @returns A JSON-serializable representation of this multi-factor object.
|
|
203
207
|
*/
|
|
204
208
|
MultiFactorSettings.prototype.toJSON = function () {
|
|
205
209
|
return {
|
|
@@ -214,7 +218,7 @@ exports.MultiFactorSettings = MultiFactorSettings;
|
|
|
214
218
|
*/
|
|
215
219
|
var UserMetadata = /** @class */ (function () {
|
|
216
220
|
/**
|
|
217
|
-
* @param response The server side response returned from the getAccountInfo
|
|
221
|
+
* @param response - The server side response returned from the getAccountInfo
|
|
218
222
|
* endpoint.
|
|
219
223
|
* @constructor
|
|
220
224
|
* @internal
|
|
@@ -230,7 +234,9 @@ var UserMetadata = /** @class */ (function () {
|
|
|
230
234
|
utils.addReadonlyGetter(this, 'lastRefreshTime', lastRefreshAt);
|
|
231
235
|
}
|
|
232
236
|
/**
|
|
233
|
-
*
|
|
237
|
+
* Returns a JSON-serializable representation of this object.
|
|
238
|
+
*
|
|
239
|
+
* @returns A JSON-serializable representation of this object.
|
|
234
240
|
*/
|
|
235
241
|
UserMetadata.prototype.toJSON = function () {
|
|
236
242
|
return {
|
|
@@ -247,7 +253,7 @@ exports.UserMetadata = UserMetadata;
|
|
|
247
253
|
*/
|
|
248
254
|
var UserInfo = /** @class */ (function () {
|
|
249
255
|
/**
|
|
250
|
-
* @param response The server side response returned from the getAccountInfo
|
|
256
|
+
* @param response - The server side response returned from the `getAccountInfo`
|
|
251
257
|
* endpoint.
|
|
252
258
|
* @constructor
|
|
253
259
|
* @internal
|
|
@@ -265,7 +271,9 @@ var UserInfo = /** @class */ (function () {
|
|
|
265
271
|
utils.addReadonlyGetter(this, 'phoneNumber', response.phoneNumber);
|
|
266
272
|
}
|
|
267
273
|
/**
|
|
268
|
-
*
|
|
274
|
+
* Returns a JSON-serializable representation of this object.
|
|
275
|
+
*
|
|
276
|
+
* @returns A JSON-serializable representation of this object.
|
|
269
277
|
*/
|
|
270
278
|
UserInfo.prototype.toJSON = function () {
|
|
271
279
|
return {
|
|
@@ -285,7 +293,7 @@ exports.UserInfo = UserInfo;
|
|
|
285
293
|
*/
|
|
286
294
|
var UserRecord = /** @class */ (function () {
|
|
287
295
|
/**
|
|
288
|
-
* @param response The server side response returned from the getAccountInfo
|
|
296
|
+
* @param response - The server side response returned from the getAccountInfo
|
|
289
297
|
* endpoint.
|
|
290
298
|
* @constructor
|
|
291
299
|
* @internal
|
|
@@ -336,7 +344,9 @@ var UserRecord = /** @class */ (function () {
|
|
|
336
344
|
}
|
|
337
345
|
}
|
|
338
346
|
/**
|
|
339
|
-
*
|
|
347
|
+
* Returns a JSON-serializable representation of this object.
|
|
348
|
+
*
|
|
349
|
+
* @returns A JSON-serializable representation of this object.
|
|
340
350
|
*/
|
|
341
351
|
UserRecord.prototype.toJSON = function () {
|
|
342
352
|
var json = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -22,28 +22,21 @@ export declare namespace credential {
|
|
|
22
22
|
* with Firebase services.
|
|
23
23
|
*
|
|
24
24
|
* In most cases, you will not need to implement this yourself and can instead
|
|
25
|
-
* use the default implementations provided by
|
|
26
|
-
* {@link credential `admin.credential`}.
|
|
25
|
+
* use the default implementations provided by the `admin.credential` namespace.
|
|
27
26
|
*/
|
|
28
27
|
type Credential = TCredential;
|
|
29
28
|
/**
|
|
30
29
|
* Returns a credential created from the
|
|
31
|
-
* {@link
|
|
32
|
-
*
|
|
33
|
-
* Google Application Default Credentials}
|
|
30
|
+
* {@link https://developers.google.com/identity/protocols/application-default-credentials |
|
|
31
|
+
* Google Application Default Credentials}
|
|
34
32
|
* that grants admin access to Firebase services. This credential can be used
|
|
35
|
-
* in the call to
|
|
36
|
-
* {@link
|
|
37
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
38
|
-
* `admin.initializeApp()`}.
|
|
33
|
+
* in the call to {@link firebase-admin.app#initializeApp}.
|
|
39
34
|
*
|
|
40
35
|
* Google Application Default Credentials are available on any Google
|
|
41
36
|
* infrastructure, such as Google App Engine and Google Compute Engine.
|
|
42
37
|
*
|
|
43
38
|
* See
|
|
44
|
-
* {@link
|
|
45
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
46
|
-
* Initialize the SDK}
|
|
39
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
47
40
|
* for more details.
|
|
48
41
|
*
|
|
49
42
|
* @example
|
|
@@ -54,25 +47,20 @@ export declare namespace credential {
|
|
|
54
47
|
* });
|
|
55
48
|
* ```
|
|
56
49
|
*
|
|
57
|
-
* @param
|
|
50
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
58
51
|
* to be used when retrieving access tokens from Google token servers.
|
|
59
52
|
*
|
|
60
|
-
* @
|
|
53
|
+
* @returns A credential authenticated via Google
|
|
61
54
|
* Application Default Credentials that can be used to initialize an app.
|
|
62
55
|
*/
|
|
63
56
|
const applicationDefault: typeof applicationDefaultFn;
|
|
64
57
|
/**
|
|
65
58
|
* Returns a credential created from the provided service account that grants
|
|
66
59
|
* admin access to Firebase services. This credential can be used in the call
|
|
67
|
-
* to
|
|
68
|
-
* {@link
|
|
69
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
70
|
-
* `admin.initializeApp()`}.
|
|
60
|
+
* to {@link firebase-admin.app#initializeApp}.
|
|
71
61
|
*
|
|
72
62
|
* See
|
|
73
|
-
* {@link
|
|
74
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
75
|
-
* Initialize the SDK}
|
|
63
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
76
64
|
* for more details.
|
|
77
65
|
*
|
|
78
66
|
* @example
|
|
@@ -98,27 +86,22 @@ export declare namespace credential {
|
|
|
98
86
|
* });
|
|
99
87
|
* ```
|
|
100
88
|
*
|
|
101
|
-
* @param serviceAccountPathOrObject The path to a service
|
|
89
|
+
* @param serviceAccountPathOrObject - The path to a service
|
|
102
90
|
* account key JSON file or an object representing a service account key.
|
|
103
|
-
* @param httpAgent Optional
|
|
91
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
104
92
|
* to be used when retrieving access tokens from Google token servers.
|
|
105
93
|
*
|
|
106
|
-
* @
|
|
94
|
+
* @returns A credential authenticated via the
|
|
107
95
|
* provided service account that can be used to initialize an app.
|
|
108
96
|
*/
|
|
109
97
|
const cert: typeof certFn;
|
|
110
98
|
/**
|
|
111
99
|
* Returns a credential created from the provided refresh token that grants
|
|
112
100
|
* admin access to Firebase services. This credential can be used in the call
|
|
113
|
-
* to
|
|
114
|
-
* {@link
|
|
115
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
116
|
-
* `admin.initializeApp()`}.
|
|
101
|
+
* to {@link firebase-admin.app#initializeApp}.
|
|
117
102
|
*
|
|
118
103
|
* See
|
|
119
|
-
* {@link
|
|
120
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
121
|
-
* Initialize the SDK}
|
|
104
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
122
105
|
* for more details.
|
|
123
106
|
*
|
|
124
107
|
* @example
|
|
@@ -131,13 +114,13 @@ export declare namespace credential {
|
|
|
131
114
|
* });
|
|
132
115
|
* ```
|
|
133
116
|
*
|
|
134
|
-
* @param refreshTokenPathOrObject The path to a Google
|
|
117
|
+
* @param refreshTokenPathOrObject - The path to a Google
|
|
135
118
|
* OAuth2 refresh token JSON file or an object representing a Google OAuth2
|
|
136
119
|
* refresh token.
|
|
137
|
-
* @param httpAgent Optional
|
|
120
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
138
121
|
* to be used when retrieving access tokens from Google token servers.
|
|
139
122
|
*
|
|
140
|
-
* @
|
|
123
|
+
* @returns A credential authenticated via the
|
|
141
124
|
* provided service account that can be used to initialize an app.
|
|
142
125
|
*/
|
|
143
126
|
const refreshToken: typeof refreshTokenFn;
|
package/lib/credential/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2020 Google Inc.
|
|
@@ -23,22 +23,16 @@ var credential;
|
|
|
23
23
|
(function (credential) {
|
|
24
24
|
/**
|
|
25
25
|
* Returns a credential created from the
|
|
26
|
-
* {@link
|
|
27
|
-
*
|
|
28
|
-
* Google Application Default Credentials}
|
|
26
|
+
* {@link https://developers.google.com/identity/protocols/application-default-credentials |
|
|
27
|
+
* Google Application Default Credentials}
|
|
29
28
|
* that grants admin access to Firebase services. This credential can be used
|
|
30
|
-
* in the call to
|
|
31
|
-
* {@link
|
|
32
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
33
|
-
* `admin.initializeApp()`}.
|
|
29
|
+
* in the call to {@link firebase-admin.app#initializeApp}.
|
|
34
30
|
*
|
|
35
31
|
* Google Application Default Credentials are available on any Google
|
|
36
32
|
* infrastructure, such as Google App Engine and Google Compute Engine.
|
|
37
33
|
*
|
|
38
34
|
* See
|
|
39
|
-
* {@link
|
|
40
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
41
|
-
* Initialize the SDK}
|
|
35
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
42
36
|
* for more details.
|
|
43
37
|
*
|
|
44
38
|
* @example
|
|
@@ -49,25 +43,20 @@ var credential;
|
|
|
49
43
|
* });
|
|
50
44
|
* ```
|
|
51
45
|
*
|
|
52
|
-
* @param
|
|
46
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
53
47
|
* to be used when retrieving access tokens from Google token servers.
|
|
54
48
|
*
|
|
55
|
-
* @
|
|
49
|
+
* @returns A credential authenticated via Google
|
|
56
50
|
* Application Default Credentials that can be used to initialize an app.
|
|
57
51
|
*/
|
|
58
52
|
credential.applicationDefault = index_1.applicationDefault;
|
|
59
53
|
/**
|
|
60
54
|
* Returns a credential created from the provided service account that grants
|
|
61
55
|
* admin access to Firebase services. This credential can be used in the call
|
|
62
|
-
* to
|
|
63
|
-
* {@link
|
|
64
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
65
|
-
* `admin.initializeApp()`}.
|
|
56
|
+
* to {@link firebase-admin.app#initializeApp}.
|
|
66
57
|
*
|
|
67
58
|
* See
|
|
68
|
-
* {@link
|
|
69
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
70
|
-
* Initialize the SDK}
|
|
59
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
71
60
|
* for more details.
|
|
72
61
|
*
|
|
73
62
|
* @example
|
|
@@ -93,27 +82,22 @@ var credential;
|
|
|
93
82
|
* });
|
|
94
83
|
* ```
|
|
95
84
|
*
|
|
96
|
-
* @param serviceAccountPathOrObject The path to a service
|
|
85
|
+
* @param serviceAccountPathOrObject - The path to a service
|
|
97
86
|
* account key JSON file or an object representing a service account key.
|
|
98
|
-
* @param httpAgent Optional
|
|
87
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
99
88
|
* to be used when retrieving access tokens from Google token servers.
|
|
100
89
|
*
|
|
101
|
-
* @
|
|
90
|
+
* @returns A credential authenticated via the
|
|
102
91
|
* provided service account that can be used to initialize an app.
|
|
103
92
|
*/
|
|
104
93
|
credential.cert = index_1.cert;
|
|
105
94
|
/**
|
|
106
95
|
* Returns a credential created from the provided refresh token that grants
|
|
107
96
|
* admin access to Firebase services. This credential can be used in the call
|
|
108
|
-
* to
|
|
109
|
-
* {@link
|
|
110
|
-
* https://firebase.google.com/docs/reference/admin/node/admin#.initializeApp
|
|
111
|
-
* `admin.initializeApp()`}.
|
|
97
|
+
* to {@link firebase-admin.app#initializeApp}.
|
|
112
98
|
*
|
|
113
99
|
* See
|
|
114
|
-
* {@link
|
|
115
|
-
* https://firebase.google.com/docs/admin/setup#initialize_the_sdk
|
|
116
|
-
* Initialize the SDK}
|
|
100
|
+
* {@link https://firebase.google.com/docs/admin/setup#initialize_the_sdk | Initialize the SDK}
|
|
117
101
|
* for more details.
|
|
118
102
|
*
|
|
119
103
|
* @example
|
|
@@ -126,13 +110,13 @@ var credential;
|
|
|
126
110
|
* });
|
|
127
111
|
* ```
|
|
128
112
|
*
|
|
129
|
-
* @param refreshTokenPathOrObject The path to a Google
|
|
113
|
+
* @param refreshTokenPathOrObject - The path to a Google
|
|
130
114
|
* OAuth2 refresh token JSON file or an object representing a Google OAuth2
|
|
131
115
|
* refresh token.
|
|
132
|
-
* @param httpAgent Optional
|
|
116
|
+
* @param httpAgent - Optional {@link https://nodejs.org/api/http.html#http_class_http_agent | HTTP Agent}
|
|
133
117
|
* to be used when retrieving access tokens from Google token servers.
|
|
134
118
|
*
|
|
135
|
-
* @
|
|
119
|
+
* @returns A credential authenticated via the
|
|
136
120
|
* provided service account that can be used to initialize an app.
|
|
137
121
|
*/
|
|
138
122
|
credential.refreshToken = index_1.refreshToken;
|