@firebase/auth 1.8.2-canary.2f92a7402 → 1.8.2-canary.313faf66b
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/dist/auth-public.d.ts +15 -9
- package/dist/auth.d.ts +17 -10
- package/dist/browser-cjs/{index-05dea0e3.js → index-4febff3b.js} +10 -4
- package/dist/browser-cjs/index-4febff3b.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/browser-cjs/src/api/errors.d.ts +2 -1
- package/dist/browser-cjs/src/core/errors.d.ts +3 -1
- package/dist/browser-cjs/src/model/public_types.d.ts +14 -9
- package/dist/cordova/auth-cordova-public.d.ts +15 -9
- package/dist/cordova/auth-cordova.d.ts +17 -10
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/{popup_redirect-ddc160b6.js → popup_redirect-e90b1aad.js} +10 -4
- package/dist/cordova/popup_redirect-e90b1aad.js.map +1 -0
- package/dist/cordova/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/cordova/src/api/errors.d.ts +2 -1
- package/dist/cordova/src/core/errors.d.ts +3 -1
- package/dist/cordova/src/model/public_types.d.ts +14 -9
- package/dist/esm2017/{index-ec72a7f0.js → index-efc59d61.js} +10 -4
- package/dist/esm2017/index-efc59d61.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm2017/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/esm2017/src/api/errors.d.ts +2 -1
- package/dist/esm2017/src/core/errors.d.ts +3 -1
- package/dist/esm2017/src/model/public_types.d.ts +14 -9
- package/dist/index.webworker.js +9 -3
- package/dist/index.webworker.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/node/src/api/errors.d.ts +2 -1
- package/dist/node/src/core/errors.d.ts +3 -1
- package/dist/node/src/model/public_types.d.ts +14 -9
- package/dist/node/{totp-5687ebe6.js → totp-030e3182.js} +10 -4
- package/dist/node/totp-030e3182.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/node-esm/src/api/errors.d.ts +2 -1
- package/dist/node-esm/src/core/errors.d.ts +3 -1
- package/dist/node-esm/src/model/public_types.d.ts +14 -9
- package/dist/node-esm/{totp-70d52d77.js → totp-0ac3e2b3.js} +10 -4
- package/dist/node-esm/totp-0ac3e2b3.js.map +1 -0
- package/dist/rn/{index-2d8ece80.js → index-837c72e5.js} +10 -4
- package/dist/rn/index-837c72e5.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -1
- package/dist/rn/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/rn/src/api/errors.d.ts +2 -1
- package/dist/rn/src/core/errors.d.ts +3 -1
- package/dist/rn/src/model/public_types.d.ts +14 -9
- package/dist/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/src/api/errors.d.ts +2 -1
- package/dist/src/core/errors.d.ts +3 -1
- package/dist/src/model/public_types.d.ts +14 -9
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/{register-41c7b66e.js → register-de115292.js} +10 -4
- package/dist/web-extension-cjs/register-de115292.js.map +1 -0
- package/dist/web-extension-cjs/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/web-extension-cjs/src/api/errors.d.ts +2 -1
- package/dist/web-extension-cjs/src/core/errors.d.ts +3 -1
- package/dist/web-extension-cjs/src/model/public_types.d.ts +14 -9
- package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +15 -9
- package/dist/web-extension-esm2017/auth-web-extension.d.ts +17 -10
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +2 -2
- package/dist/web-extension-esm2017/{register-e512ccb2.js → register-acacb3a9.js} +10 -4
- package/dist/web-extension-esm2017/register-acacb3a9.js.map +1 -0
- package/dist/web-extension-esm2017/src/api/authentication/email_and_password.d.ts +1 -0
- package/dist/web-extension-esm2017/src/api/errors.d.ts +2 -1
- package/dist/web-extension-esm2017/src/core/errors.d.ts +3 -1
- package/dist/web-extension-esm2017/src/model/public_types.d.ts +14 -9
- package/package.json +6 -6
- package/dist/browser-cjs/index-05dea0e3.js.map +0 -1
- package/dist/cordova/popup_redirect-ddc160b6.js.map +0 -1
- package/dist/esm2017/index-ec72a7f0.js.map +0 -1
- package/dist/node/totp-5687ebe6.js.map +0 -1
- package/dist/node-esm/totp-70d52d77.js.map +0 -1
- package/dist/rn/index-2d8ece80.js.map +0 -1
- package/dist/web-extension-cjs/register-41c7b66e.js.map +0 -1
- package/dist/web-extension-esm2017/register-e512ccb2.js.map +0 -1
package/dist/auth-public.d.ts
CHANGED
|
@@ -84,12 +84,7 @@ export declare interface ActionCodeSettings {
|
|
|
84
84
|
* Sets the Android package name.
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* This will try to open the link in an
|
|
88
|
-
* installed. If `installApp` is passed, it specifies whether to install the Android app if the
|
|
89
|
-
* device supports it and the app is not already installed. If this field is provided without
|
|
90
|
-
* a `packageName`, an error is thrown explaining that the `packageName` must be provided in
|
|
91
|
-
* conjunction with this field. If `minimumVersion` is specified, and an older version of the
|
|
92
|
-
* app is installed, the user is taken to the Play Store to upgrade the app.
|
|
87
|
+
* This will try to open the link in an Android app if it is installed.
|
|
93
88
|
*/
|
|
94
89
|
android?: {
|
|
95
90
|
installApp?: boolean;
|
|
@@ -112,8 +107,6 @@ export declare interface ActionCodeSettings {
|
|
|
112
107
|
*
|
|
113
108
|
* @remarks
|
|
114
109
|
* This will try to open the link in an iOS app if it is installed.
|
|
115
|
-
*
|
|
116
|
-
* App installation is not supported for iOS.
|
|
117
110
|
*/
|
|
118
111
|
iOS?: {
|
|
119
112
|
bundleId: string;
|
|
@@ -126,7 +119,7 @@ export declare interface ActionCodeSettings {
|
|
|
126
119
|
* - When the link is handled in the web action widgets, this is the deep link in the
|
|
127
120
|
* `continueUrl` query parameter.
|
|
128
121
|
* - When the link is handled in the app directly, this is the `continueUrl` query parameter in
|
|
129
|
-
* the deep link of the Dynamic Link.
|
|
122
|
+
* the deep link of the Dynamic Link or Hosting link.
|
|
130
123
|
*/
|
|
131
124
|
url: string;
|
|
132
125
|
/**
|
|
@@ -135,8 +128,20 @@ export declare interface ActionCodeSettings {
|
|
|
135
128
|
*
|
|
136
129
|
*
|
|
137
130
|
* @defaultValue The first domain is automatically selected.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
|
|
133
|
+
* 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
|
|
134
|
+
* links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
|
|
138
135
|
*/
|
|
139
136
|
dynamicLinkDomain?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The optional custom Firebase Hosting domain to use when the link is to be opened via
|
|
139
|
+
* a specified mobile app. The domain must be configured in Firebase Hosting and owned
|
|
140
|
+
* by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
|
|
141
|
+
*
|
|
142
|
+
* @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
|
|
143
|
+
*/
|
|
144
|
+
linkDomain?: string;
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
/**
|
|
@@ -609,6 +614,7 @@ export declare const AuthErrorCodes: {
|
|
|
609
614
|
readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
|
|
610
615
|
readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
|
|
611
616
|
readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
|
|
617
|
+
readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
|
|
612
618
|
};
|
|
613
619
|
|
|
614
620
|
/**
|
package/dist/auth.d.ts
CHANGED
|
@@ -84,12 +84,7 @@ export declare interface ActionCodeSettings {
|
|
|
84
84
|
* Sets the Android package name.
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* This will try to open the link in an
|
|
88
|
-
* installed. If `installApp` is passed, it specifies whether to install the Android app if the
|
|
89
|
-
* device supports it and the app is not already installed. If this field is provided without
|
|
90
|
-
* a `packageName`, an error is thrown explaining that the `packageName` must be provided in
|
|
91
|
-
* conjunction with this field. If `minimumVersion` is specified, and an older version of the
|
|
92
|
-
* app is installed, the user is taken to the Play Store to upgrade the app.
|
|
87
|
+
* This will try to open the link in an Android app if it is installed.
|
|
93
88
|
*/
|
|
94
89
|
android?: {
|
|
95
90
|
installApp?: boolean;
|
|
@@ -112,8 +107,6 @@ export declare interface ActionCodeSettings {
|
|
|
112
107
|
*
|
|
113
108
|
* @remarks
|
|
114
109
|
* This will try to open the link in an iOS app if it is installed.
|
|
115
|
-
*
|
|
116
|
-
* App installation is not supported for iOS.
|
|
117
110
|
*/
|
|
118
111
|
iOS?: {
|
|
119
112
|
bundleId: string;
|
|
@@ -126,7 +119,7 @@ export declare interface ActionCodeSettings {
|
|
|
126
119
|
* - When the link is handled in the web action widgets, this is the deep link in the
|
|
127
120
|
* `continueUrl` query parameter.
|
|
128
121
|
* - When the link is handled in the app directly, this is the `continueUrl` query parameter in
|
|
129
|
-
* the deep link of the Dynamic Link.
|
|
122
|
+
* the deep link of the Dynamic Link or Hosting link.
|
|
130
123
|
*/
|
|
131
124
|
url: string;
|
|
132
125
|
/**
|
|
@@ -135,8 +128,20 @@ export declare interface ActionCodeSettings {
|
|
|
135
128
|
*
|
|
136
129
|
*
|
|
137
130
|
* @defaultValue The first domain is automatically selected.
|
|
131
|
+
*
|
|
132
|
+
* @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
|
|
133
|
+
* 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
|
|
134
|
+
* links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
|
|
138
135
|
*/
|
|
139
136
|
dynamicLinkDomain?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The optional custom Firebase Hosting domain to use when the link is to be opened via
|
|
139
|
+
* a specified mobile app. The domain must be configured in Firebase Hosting and owned
|
|
140
|
+
* by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
|
|
141
|
+
*
|
|
142
|
+
* @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
|
|
143
|
+
*/
|
|
144
|
+
linkDomain?: string;
|
|
140
145
|
}
|
|
141
146
|
|
|
142
147
|
/**
|
|
@@ -632,7 +637,8 @@ declare const enum AuthErrorCode {
|
|
|
632
637
|
INVALID_RECAPTCHA_VERSION = "invalid-recaptcha-version",
|
|
633
638
|
INVALID_REQ_TYPE = "invalid-req-type",
|
|
634
639
|
UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = "unsupported-password-policy-schema-version",
|
|
635
|
-
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements"
|
|
640
|
+
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements",
|
|
641
|
+
INVALID_HOSTING_LINK_DOMAIN = "invalid-hosting-link-domain"
|
|
636
642
|
}
|
|
637
643
|
|
|
638
644
|
/**
|
|
@@ -751,6 +757,7 @@ export declare const AuthErrorCodes: {
|
|
|
751
757
|
readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
|
|
752
758
|
readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
|
|
753
759
|
readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
|
|
760
|
+
readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
|
|
754
761
|
};
|
|
755
762
|
|
|
756
763
|
/**
|
|
@@ -277,7 +277,9 @@ function _debugErrorMap() {
|
|
|
277
277
|
["invalid-req-type" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',
|
|
278
278
|
["invalid-recaptcha-version" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',
|
|
279
279
|
["unsupported-password-policy-schema-version" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */]: 'The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.',
|
|
280
|
-
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'
|
|
280
|
+
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.',
|
|
281
|
+
["invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */]: 'The provided Hosting link domain is not configured in Firebase Hosting or is not owned by ' +
|
|
282
|
+
'the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).'
|
|
281
283
|
};
|
|
282
284
|
}
|
|
283
285
|
function _prodErrorMap() {
|
|
@@ -422,7 +424,8 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
|
|
|
422
424
|
MISSING_CLIENT_TYPE: 'auth/missing-client-type',
|
|
423
425
|
MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
|
|
424
426
|
INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
|
|
425
|
-
INVALID_REQ_TYPE: 'auth/invalid-req-type'
|
|
427
|
+
INVALID_REQ_TYPE: 'auth/invalid-req-type',
|
|
428
|
+
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
|
|
426
429
|
};
|
|
427
430
|
|
|
428
431
|
/**
|
|
@@ -5937,8 +5940,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
|
|
|
5937
5940
|
_assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
|
|
5938
5941
|
_assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
|
|
5939
5942
|
actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
|
|
5943
|
+
_assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
|
|
5944
|
+
actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
|
|
5940
5945
|
request.continueUrl = actionCodeSettings.url;
|
|
5941
5946
|
request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
|
|
5947
|
+
request.linkDomain = actionCodeSettings.linkDomain;
|
|
5942
5948
|
request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
|
|
5943
5949
|
if (actionCodeSettings.iOS) {
|
|
5944
5950
|
_assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
|
|
@@ -10661,7 +10667,7 @@ function _isEmptyString(input) {
|
|
|
10661
10667
|
}
|
|
10662
10668
|
|
|
10663
10669
|
var name = "@firebase/auth";
|
|
10664
|
-
var version = "1.8.2-canary.
|
|
10670
|
+
var version = "1.8.2-canary.313faf66b";
|
|
10665
10671
|
|
|
10666
10672
|
/**
|
|
10667
10673
|
* @license
|
|
@@ -11022,4 +11028,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
11022
11028
|
exports.validatePassword = validatePassword;
|
|
11023
11029
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
11024
11030
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
11025
|
-
//# sourceMappingURL=index-
|
|
11031
|
+
//# sourceMappingURL=index-4febff3b.js.map
|