firebase-admin 13.0.1 → 13.1.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/lib/app/core.d.ts +1 -1
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +1 -1
- package/lib/app/credential-factory.js +1 -1
- package/lib/app/credential-internal.d.ts +1 -1
- package/lib/app/credential-internal.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/app-check/token-generator.d.ts +1 -1
- package/lib/app-check/token-generator.js +1 -1
- 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 +10 -1
- package/lib/auth/action-code-settings-builder.js +7 -1
- package/lib/auth/auth-api-request.d.ts +1 -1
- package/lib/auth/auth-api-request.js +1 -1
- package/lib/auth/auth-config.d.ts +15 -1
- package/lib/auth/auth-config.js +28 -2
- 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 +4 -4
- package/lib/auth/base-auth.js +4 -4
- package/lib/auth/identifier.d.ts +1 -1
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +2 -2
- package/lib/auth/index.js +1 -1
- 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 +12 -2
- package/lib/auth/project-config.js +16 -1
- package/lib/auth/tenant-manager.d.ts +1 -1
- package/lib/auth/tenant-manager.js +1 -1
- package/lib/auth/tenant.d.ts +1 -1
- package/lib/auth/tenant.js +1 -1
- package/lib/auth/token-generator.d.ts +1 -1
- package/lib/auth/token-generator.js +1 -1
- package/lib/auth/token-verifier.d.ts +1 -1
- package/lib/auth/token-verifier.js +1 -1
- package/lib/auth/user-import-builder.d.ts +1 -1
- package/lib/auth/user-import-builder.js +1 -1
- 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 +1 -1
- package/lib/database/database-namespace.d.ts +1 -1
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +1 -1
- package/lib/database/database.js +1 -1
- package/lib/database/index.d.ts +1 -1
- package/lib/database/index.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +15 -5
- 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 +1 -1
- package/lib/functions/functions-api-client-internal.d.ts +1 -1
- package/lib/functions/functions-api-client-internal.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +1 -1
- 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 +1 -1
- package/lib/messaging/index.js +1 -1
- package/lib/messaging/messaging-api-request-internal.d.ts +1 -1
- package/lib/messaging/messaging-api-request-internal.js +1 -1
- package/lib/messaging/messaging-api.d.ts +1 -1
- 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 +1 -1
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +1 -1
- package/lib/messaging/messaging-namespace.d.ts +1 -1
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +1 -1
- package/lib/messaging/messaging.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/remote-config/index.d.ts +1 -1
- package/lib/remote-config/index.js +1 -1
- 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 +1 -1
- 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 -1
- package/lib/security-rules/security-rules.js +1 -1
- package/lib/storage/index.d.ts +1 -1
- package/lib/storage/index.js +1 -1
- 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 +1 -1
- package/lib/utils/api-request.d.ts +1 -1
- package/lib/utils/api-request.js +1 -1
- package/lib/utils/crypto-signer.d.ts +3 -2
- package/lib/utils/crypto-signer.js +16 -8
- package/lib/utils/deep-copy.d.ts +1 -1
- package/lib/utils/deep-copy.js +1 -1
- package/lib/utils/error.d.ts +5 -1
- package/lib/utils/error.js +8 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/jwt.js +1 -1
- package/lib/utils/validator.d.ts +1 -1
- package/lib/utils/validator.js +1 -1
- package/package.json +2 -2
package/lib/app/core.d.ts
CHANGED
package/lib/app/core.js
CHANGED
package/lib/app/credential.d.ts
CHANGED
package/lib/app/credential.js
CHANGED
package/lib/app/firebase-app.js
CHANGED
package/lib/app/index.d.ts
CHANGED
package/lib/app/index.js
CHANGED
package/lib/app/lifecycle.d.ts
CHANGED
package/lib/app/lifecycle.js
CHANGED
package/lib/app-check/index.d.ts
CHANGED
package/lib/app-check/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2018 Google Inc.
|
|
4
4
|
*
|
|
@@ -82,6 +82,15 @@ export interface ActionCodeSettings {
|
|
|
82
82
|
* configured per project. This field provides the ability to explicitly choose
|
|
83
83
|
* configured per project. This fields provides the ability explicitly choose
|
|
84
84
|
* one. If none is provided, the oldest domain is used by default.
|
|
85
|
+
* @deprecated use `linkDomain` instead
|
|
85
86
|
*/
|
|
86
87
|
dynamicLinkDomain?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Defines the custom Firebase Hosting domain to use when the link is to be opened
|
|
90
|
+
* via a specified mobile app,
|
|
91
|
+
* This is a replacement of Firebase Dynamic Link.
|
|
92
|
+
* If none is provided,
|
|
93
|
+
* a default hosting domain will be used (for example, `example.firebaseapp.com`)
|
|
94
|
+
*/
|
|
95
|
+
linkDomain?: string;
|
|
87
96
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2018 Google Inc.
|
|
@@ -54,6 +54,11 @@ class ActionCodeSettingsBuilder {
|
|
|
54
54
|
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_DYNAMIC_LINK_DOMAIN);
|
|
55
55
|
}
|
|
56
56
|
this.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
|
|
57
|
+
if (typeof actionCodeSettings.linkDomain !== 'undefined' &&
|
|
58
|
+
!validator.isNonEmptyString(actionCodeSettings.linkDomain)) {
|
|
59
|
+
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_HOSTING_LINK_DOMAIN);
|
|
60
|
+
}
|
|
61
|
+
this.linkDomain = actionCodeSettings.linkDomain;
|
|
57
62
|
if (typeof actionCodeSettings.iOS !== 'undefined') {
|
|
58
63
|
if (!validator.isNonNullObject(actionCodeSettings.iOS)) {
|
|
59
64
|
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_ARGUMENT, '"ActionCodeSettings.iOS" must be a valid non-null object.');
|
|
@@ -100,6 +105,7 @@ class ActionCodeSettingsBuilder {
|
|
|
100
105
|
continueUrl: this.continueUrl,
|
|
101
106
|
canHandleCodeInApp: this.canHandleCodeInApp,
|
|
102
107
|
dynamicLinkDomain: this.dynamicLinkDomain,
|
|
108
|
+
linkDomain: this.linkDomain,
|
|
103
109
|
androidPackageName: this.apn,
|
|
104
110
|
androidMinimumVersion: this.amv,
|
|
105
111
|
androidInstallApp: this.installApp,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2018 Google Inc.
|
|
4
4
|
*
|
|
@@ -767,6 +767,20 @@ export interface PasswordPolicyConfig {
|
|
|
767
767
|
*/
|
|
768
768
|
constraints?: CustomStrengthOptionsConfig;
|
|
769
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* Configuration for settings related to univeral links (iOS)
|
|
772
|
+
* and app links (Android).
|
|
773
|
+
*/
|
|
774
|
+
export interface MobileLinksConfig {
|
|
775
|
+
/**
|
|
776
|
+
* Use Firebase Hosting or dynamic link domain as the out-of-band code domain.
|
|
777
|
+
*/
|
|
778
|
+
domain?: MobileLinksDomain;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Open code in app domain to use for app links and universal links.
|
|
782
|
+
*/
|
|
783
|
+
export type MobileLinksDomain = 'HOSTING_DOMAIN' | 'FIREBASE_DYNAMIC_LINK_DOMAIN';
|
|
770
784
|
/**
|
|
771
785
|
* A password policy's enforcement state.
|
|
772
786
|
*/
|
package/lib/auth/auth-config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2018 Google Inc.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.EmailPrivacyAuthConfig = exports.PasswordPolicyAuthConfig = exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
|
|
19
|
+
exports.EmailPrivacyAuthConfig = exports.PasswordPolicyAuthConfig = exports.MobileLinksAuthConfig = exports.RecaptchaAuthConfig = exports.SmsRegionsAuthConfig = exports.OIDCConfig = exports.SAMLConfig = exports.EmailSignInConfig = exports.MultiFactorAuthConfig = exports.MAXIMUM_TEST_PHONE_NUMBERS = void 0;
|
|
20
20
|
exports.validateTestPhoneNumbers = validateTestPhoneNumbers;
|
|
21
21
|
const validator = require("../utils/validator");
|
|
22
22
|
const deep_copy_1 = require("../utils/deep-copy");
|
|
@@ -943,6 +943,32 @@ class RecaptchaAuthConfig {
|
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
exports.RecaptchaAuthConfig = RecaptchaAuthConfig;
|
|
946
|
+
/**
|
|
947
|
+
* Defines the MobileLinksAuthConfig class used for validation.
|
|
948
|
+
*
|
|
949
|
+
* @internal
|
|
950
|
+
*/
|
|
951
|
+
class MobileLinksAuthConfig {
|
|
952
|
+
static validate(options) {
|
|
953
|
+
if (!validator.isNonNullObject(options)) {
|
|
954
|
+
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"MobileLinksConfig" must be a non-null object.');
|
|
955
|
+
}
|
|
956
|
+
const validKeys = {
|
|
957
|
+
domain: true,
|
|
958
|
+
};
|
|
959
|
+
for (const key in options) {
|
|
960
|
+
if (!(key in validKeys)) {
|
|
961
|
+
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, `"${key}" is not a valid "MobileLinksConfig" parameter.`);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
if (typeof options.domain !== 'undefined'
|
|
965
|
+
&& options.domain !== 'HOSTING_DOMAIN'
|
|
966
|
+
&& options.domain !== 'FIREBASE_DYNAMIC_LINK_DOMAIN') {
|
|
967
|
+
throw new error_1.FirebaseAuthError(error_1.AuthClientErrorCode.INVALID_CONFIG, '"MobileLinksConfig.domain" must be either "HOSTING_DOMAIN" or "FIREBASE_DYNAMIC_LINK_DOMAIN".');
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
exports.MobileLinksAuthConfig = MobileLinksAuthConfig;
|
|
946
972
|
/**
|
|
947
973
|
* Defines the password policy config class used to convert client side PasswordPolicyConfig
|
|
948
974
|
* to a format that is understood by the Auth server.
|
package/lib/auth/auth.d.ts
CHANGED
package/lib/auth/auth.js
CHANGED
package/lib/auth/base-auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google Inc.
|
|
4
4
|
*
|
|
@@ -400,7 +400,7 @@ export declare abstract class BaseAuth {
|
|
|
400
400
|
* minimumVersion: '12'
|
|
401
401
|
* },
|
|
402
402
|
* handleCodeInApp: true,
|
|
403
|
-
*
|
|
403
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
404
404
|
* };
|
|
405
405
|
* admin.auth()
|
|
406
406
|
* .generatePasswordResetLink('user@example.com', actionCodeSettings)
|
|
@@ -450,7 +450,7 @@ export declare abstract class BaseAuth {
|
|
|
450
450
|
* minimumVersion: '12'
|
|
451
451
|
* },
|
|
452
452
|
* handleCodeInApp: true,
|
|
453
|
-
*
|
|
453
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
454
454
|
* };
|
|
455
455
|
* admin.auth()
|
|
456
456
|
* .generateEmailVerificationLink('user@example.com', actionCodeSettings)
|
|
@@ -524,7 +524,7 @@ export declare abstract class BaseAuth {
|
|
|
524
524
|
* minimumVersion: '12'
|
|
525
525
|
* },
|
|
526
526
|
* handleCodeInApp: true,
|
|
527
|
-
*
|
|
527
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
528
528
|
* };
|
|
529
529
|
* admin.auth()
|
|
530
530
|
* .generateEmailVerificationLink('user@example.com', actionCodeSettings)
|
package/lib/auth/base-auth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* Copyright 2021 Google Inc.
|
|
@@ -609,7 +609,7 @@ class BaseAuth {
|
|
|
609
609
|
* minimumVersion: '12'
|
|
610
610
|
* },
|
|
611
611
|
* handleCodeInApp: true,
|
|
612
|
-
*
|
|
612
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
613
613
|
* };
|
|
614
614
|
* admin.auth()
|
|
615
615
|
* .generatePasswordResetLink('user@example.com', actionCodeSettings)
|
|
@@ -661,7 +661,7 @@ class BaseAuth {
|
|
|
661
661
|
* minimumVersion: '12'
|
|
662
662
|
* },
|
|
663
663
|
* handleCodeInApp: true,
|
|
664
|
-
*
|
|
664
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
665
665
|
* };
|
|
666
666
|
* admin.auth()
|
|
667
667
|
* .generateEmailVerificationLink('user@example.com', actionCodeSettings)
|
|
@@ -739,7 +739,7 @@ class BaseAuth {
|
|
|
739
739
|
* minimumVersion: '12'
|
|
740
740
|
* },
|
|
741
741
|
* handleCodeInApp: true,
|
|
742
|
-
*
|
|
742
|
+
* linkDomain: 'project-id.firebaseapp.com'
|
|
743
743
|
* };
|
|
744
744
|
* admin.auth()
|
|
745
745
|
* .generateEmailVerificationLink('user@example.com', actionCodeSettings)
|
package/lib/auth/identifier.d.ts
CHANGED
package/lib/auth/identifier.js
CHANGED
package/lib/auth/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2020 Google Inc.
|
|
4
4
|
*
|
|
@@ -45,7 +45,7 @@ import { Auth } from './auth';
|
|
|
45
45
|
export declare function getAuth(app?: App): Auth;
|
|
46
46
|
export { ActionCodeSettings } from './action-code-settings-builder';
|
|
47
47
|
export { Auth, } from './auth';
|
|
48
|
-
export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaTollFraudManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, PasswordPolicyConfig, PasswordPolicyEnforcementState, CustomStrengthOptionsConfig, EmailPrivacyConfig, } from './auth-config';
|
|
48
|
+
export { AllowByDefault, AllowByDefaultWrap, AllowlistOnly, AllowlistOnlyWrap, AuthFactorType, AuthProviderConfig, AuthProviderConfigFilter, BaseAuthProviderConfig, BaseCreateMultiFactorInfoRequest, BaseUpdateMultiFactorInfoRequest, CreateMultiFactorInfoRequest, CreatePhoneMultiFactorInfoRequest, CreateRequest, EmailSignInProviderConfig, ListProviderConfigResults, MultiFactorConfig, MultiFactorConfigState, MultiFactorCreateSettings, MultiFactorUpdateSettings, MultiFactorProviderConfig, OAuthResponseType, OIDCAuthProviderConfig, OIDCUpdateAuthProviderRequest, RecaptchaAction, RecaptchaConfig, RecaptchaKey, RecaptchaKeyClientType, RecaptchaManagedRule, RecaptchaTollFraudManagedRule, RecaptchaProviderEnforcementState, SAMLAuthProviderConfig, SAMLUpdateAuthProviderRequest, SmsRegionConfig, UserProvider, UpdateAuthProviderRequest, UpdateMultiFactorInfoRequest, UpdatePhoneMultiFactorInfoRequest, UpdateRequest, TotpMultiFactorProviderConfig, PasswordPolicyConfig, PasswordPolicyEnforcementState, CustomStrengthOptionsConfig, EmailPrivacyConfig, MobileLinksConfig, MobileLinksDomain, } from './auth-config';
|
|
49
49
|
export { BaseAuth, DeleteUsersResult, GetUsersResult, ListUsersResult, SessionCookieOptions, } from './base-auth';
|
|
50
50
|
export { EmailIdentifier, PhoneIdentifier, ProviderIdentifier, UidIdentifier, UserIdentifier, } from './identifier';
|
|
51
51
|
export { CreateTenantRequest, Tenant, UpdateTenantRequest, } from './tenant';
|
package/lib/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
2
|
-
import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig, RecaptchaAuthServerConfig, PasswordPolicyAuthServerConfig, PasswordPolicyConfig, EmailPrivacyConfig } from './auth-config';
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
|
+
import { SmsRegionConfig, MultiFactorConfig, MultiFactorAuthServerConfig, RecaptchaConfig, RecaptchaAuthServerConfig, PasswordPolicyAuthServerConfig, PasswordPolicyConfig, EmailPrivacyConfig, MobileLinksConfig } from './auth-config';
|
|
3
3
|
/**
|
|
4
4
|
* Interface representing the properties to update on the provided project config.
|
|
5
5
|
*/
|
|
@@ -27,6 +27,10 @@ export interface UpdateProjectConfigRequest {
|
|
|
27
27
|
* The email privacy configuration to update on the project
|
|
28
28
|
*/
|
|
29
29
|
emailPrivacyConfig?: EmailPrivacyConfig;
|
|
30
|
+
/**
|
|
31
|
+
* The mobile links configuration for the project
|
|
32
|
+
*/
|
|
33
|
+
mobileLinksConfig?: MobileLinksConfig;
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* Response received when getting or updating the project config.
|
|
@@ -37,6 +41,7 @@ export interface ProjectConfigServerResponse {
|
|
|
37
41
|
recaptchaConfig?: RecaptchaAuthServerConfig;
|
|
38
42
|
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
|
|
39
43
|
emailPrivacyConfig?: EmailPrivacyConfig;
|
|
44
|
+
mobileLinksConfig?: MobileLinksConfig;
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
42
47
|
* Request to update the project config.
|
|
@@ -47,6 +52,7 @@ export interface ProjectConfigClientRequest {
|
|
|
47
52
|
recaptchaConfig?: RecaptchaAuthServerConfig;
|
|
48
53
|
passwordPolicyConfig?: PasswordPolicyAuthServerConfig;
|
|
49
54
|
emailPrivacyConfig?: EmailPrivacyConfig;
|
|
55
|
+
mobileLinksConfig?: MobileLinksConfig;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
52
58
|
* Represents a project configuration.
|
|
@@ -86,6 +92,10 @@ export declare class ProjectConfig {
|
|
|
86
92
|
* The email privacy configuration for the project
|
|
87
93
|
*/
|
|
88
94
|
readonly emailPrivacyConfig?: EmailPrivacyConfig;
|
|
95
|
+
/**
|
|
96
|
+
* The mobile links configuration for the project
|
|
97
|
+
*/
|
|
98
|
+
readonly mobileLinksConfig?: MobileLinksConfig;
|
|
89
99
|
/**
|
|
90
100
|
* Validates a project config options object. Throws an error on failure.
|
|
91
101
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin v13.0
|
|
1
|
+
/*! firebase-admin v13.1.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ProjectConfig = void 0;
|
|
@@ -52,6 +52,7 @@ class ProjectConfig {
|
|
|
52
52
|
recaptchaConfig: true,
|
|
53
53
|
passwordPolicyConfig: true,
|
|
54
54
|
emailPrivacyConfig: true,
|
|
55
|
+
mobileLinksConfig: true,
|
|
55
56
|
};
|
|
56
57
|
// Check for unsupported top level attributes.
|
|
57
58
|
for (const key in request) {
|
|
@@ -79,6 +80,10 @@ class ProjectConfig {
|
|
|
79
80
|
if (typeof request.emailPrivacyConfig !== 'undefined') {
|
|
80
81
|
auth_config_1.EmailPrivacyAuthConfig.validate(request.emailPrivacyConfig);
|
|
81
82
|
}
|
|
83
|
+
// Validate Mobile Links Config if provided.
|
|
84
|
+
if (typeof request.mobileLinksConfig !== 'undefined') {
|
|
85
|
+
auth_config_1.MobileLinksAuthConfig.validate(request.mobileLinksConfig);
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
/**
|
|
84
89
|
* Build the corresponding server request for a UpdateProjectConfigRequest object.
|
|
@@ -105,6 +110,9 @@ class ProjectConfig {
|
|
|
105
110
|
if (typeof configOptions.emailPrivacyConfig !== 'undefined') {
|
|
106
111
|
request.emailPrivacyConfig = configOptions.emailPrivacyConfig;
|
|
107
112
|
}
|
|
113
|
+
if (typeof configOptions.mobileLinksConfig !== 'undefined') {
|
|
114
|
+
request.mobileLinksConfig = configOptions.mobileLinksConfig;
|
|
115
|
+
}
|
|
108
116
|
return request;
|
|
109
117
|
}
|
|
110
118
|
/**
|
|
@@ -132,6 +140,9 @@ class ProjectConfig {
|
|
|
132
140
|
if (typeof response.emailPrivacyConfig !== 'undefined') {
|
|
133
141
|
this.emailPrivacyConfig = response.emailPrivacyConfig;
|
|
134
142
|
}
|
|
143
|
+
if (typeof response.mobileLinksConfig !== 'undefined') {
|
|
144
|
+
this.mobileLinksConfig = response.mobileLinksConfig;
|
|
145
|
+
}
|
|
135
146
|
}
|
|
136
147
|
/**
|
|
137
148
|
* Returns a JSON-serializable representation of this object.
|
|
@@ -146,6 +157,7 @@ class ProjectConfig {
|
|
|
146
157
|
recaptchaConfig: (0, deep_copy_1.deepCopy)(this.recaptchaConfig),
|
|
147
158
|
passwordPolicyConfig: (0, deep_copy_1.deepCopy)(this.passwordPolicyConfig),
|
|
148
159
|
emailPrivacyConfig: (0, deep_copy_1.deepCopy)(this.emailPrivacyConfig),
|
|
160
|
+
mobileLinksConfig: (0, deep_copy_1.deepCopy)(this.mobileLinksConfig),
|
|
149
161
|
};
|
|
150
162
|
if (typeof json.smsRegionConfig === 'undefined') {
|
|
151
163
|
delete json.smsRegionConfig;
|
|
@@ -162,6 +174,9 @@ class ProjectConfig {
|
|
|
162
174
|
if (typeof json.emailPrivacyConfig === 'undefined') {
|
|
163
175
|
delete json.emailPrivacyConfig;
|
|
164
176
|
}
|
|
177
|
+
if (typeof json.mobileLinksConfig === 'undefined') {
|
|
178
|
+
delete json.mobileLinksConfig;
|
|
179
|
+
}
|
|
165
180
|
return json;
|
|
166
181
|
}
|
|
167
182
|
}
|
package/lib/auth/tenant.d.ts
CHANGED
package/lib/auth/tenant.js
CHANGED