@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/esm2017/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './index-efc59d61.js';
|
|
2
2
|
import '@firebase/app';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/logger';
|
package/dist/esm2017/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { au as debugAssert, av as _isIOS, aw as _isAndroid, ax as _fail, ay as _getRedirectUrl, az as _getProjectConfig, aA as _isIOS7Or8, aB as _createError, aC as _assert, aD as AuthEventManager, aE as _getInstance, b as browserLocalPersistence, aF as _persistenceKeyName, a as browserSessionPersistence, aG as _getRedirectResult, aH as _overrideRedirectResult, aI as _clearRedirectOutcomes, aJ as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, aL as AuthImpl, aO as AuthPopup, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, aP as FetchProvider, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aQ as SAMLAuthCredential, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, aK as UserImpl, aC as _assert, aJ as _castAuth, ax as _fail, aN as _generateEventId, aM as _getClientVersion, aE as _getInstance, aG as _getRedirectResult, aH as _overrideRedirectResult, aF as _persistenceKeyName, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { au as debugAssert, av as _isIOS, aw as _isAndroid, ax as _fail, ay as _getRedirectUrl, az as _getProjectConfig, aA as _isIOS7Or8, aB as _createError, aC as _assert, aD as AuthEventManager, aE as _getInstance, b as browserLocalPersistence, aF as _persistenceKeyName, a as browserSessionPersistence, aG as _getRedirectResult, aH as _overrideRedirectResult, aI as _clearRedirectOutcomes, aJ as _castAuth } from './index-efc59d61.js';
|
|
2
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, aL as AuthImpl, aO as AuthPopup, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, aP as FetchProvider, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aQ as SAMLAuthCredential, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, aK as UserImpl, aC as _assert, aJ as _castAuth, ax as _fail, aN as _generateEventId, aM as _getClientVersion, aE as _getInstance, aG as _getRedirectResult, aH as _overrideRedirectResult, aF as _persistenceKeyName, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './index-efc59d61.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import '@firebase/logger';
|
|
@@ -43,6 +43,7 @@ export interface GetOobCodeRequest {
|
|
|
43
43
|
dynamicLinkDomain?: string;
|
|
44
44
|
tenantId?: string;
|
|
45
45
|
targetProjectid?: string;
|
|
46
|
+
linkDomain?: string;
|
|
46
47
|
}
|
|
47
48
|
export interface VerifyEmailRequest extends GetOobCodeRequest {
|
|
48
49
|
requestType: ActionCodeOperation.VERIFY_EMAIL;
|
|
@@ -98,7 +98,8 @@ export declare const enum ServerError {
|
|
|
98
98
|
MISSING_RECAPTCHA_VERSION = "MISSING_RECAPTCHA_VERSION",
|
|
99
99
|
INVALID_RECAPTCHA_VERSION = "INVALID_RECAPTCHA_VERSION",
|
|
100
100
|
INVALID_REQ_TYPE = "INVALID_REQ_TYPE",
|
|
101
|
-
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "PASSWORD_DOES_NOT_MEET_REQUIREMENTS"
|
|
101
|
+
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "PASSWORD_DOES_NOT_MEET_REQUIREMENTS",
|
|
102
|
+
INVALID_HOSTING_LINK_DOMAIN = "INVALID_HOSTING_LINK_DOMAIN"
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
105
|
* API Response in the event of an error
|
|
@@ -131,7 +131,8 @@ export declare const enum AuthErrorCode {
|
|
|
131
131
|
INVALID_RECAPTCHA_VERSION = "invalid-recaptcha-version",
|
|
132
132
|
INVALID_REQ_TYPE = "invalid-req-type",
|
|
133
133
|
UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = "unsupported-password-policy-schema-version",
|
|
134
|
-
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements"
|
|
134
|
+
PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements",
|
|
135
|
+
INVALID_HOSTING_LINK_DOMAIN = "invalid-hosting-link-domain"
|
|
135
136
|
}
|
|
136
137
|
export interface ErrorMapRetriever extends AuthErrorMap {
|
|
137
138
|
(): ErrorMap<AuthErrorCode>;
|
|
@@ -321,5 +322,6 @@ export declare const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY: {
|
|
|
321
322
|
readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
|
|
322
323
|
readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
|
|
323
324
|
readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
|
|
325
|
+
readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
|
|
324
326
|
};
|
|
325
327
|
export {};
|
|
@@ -422,12 +422,7 @@ export interface ActionCodeSettings {
|
|
|
422
422
|
* Sets the Android package name.
|
|
423
423
|
*
|
|
424
424
|
* @remarks
|
|
425
|
-
* This will try to open the link in an
|
|
426
|
-
* installed. If `installApp` is passed, it specifies whether to install the Android app if the
|
|
427
|
-
* device supports it and the app is not already installed. If this field is provided without
|
|
428
|
-
* a `packageName`, an error is thrown explaining that the `packageName` must be provided in
|
|
429
|
-
* conjunction with this field. If `minimumVersion` is specified, and an older version of the
|
|
430
|
-
* app is installed, the user is taken to the Play Store to upgrade the app.
|
|
425
|
+
* This will try to open the link in an Android app if it is installed.
|
|
431
426
|
*/
|
|
432
427
|
android?: {
|
|
433
428
|
installApp?: boolean;
|
|
@@ -450,8 +445,6 @@ export interface ActionCodeSettings {
|
|
|
450
445
|
*
|
|
451
446
|
* @remarks
|
|
452
447
|
* This will try to open the link in an iOS app if it is installed.
|
|
453
|
-
*
|
|
454
|
-
* App installation is not supported for iOS.
|
|
455
448
|
*/
|
|
456
449
|
iOS?: {
|
|
457
450
|
bundleId: string;
|
|
@@ -464,7 +457,7 @@ export interface ActionCodeSettings {
|
|
|
464
457
|
* - When the link is handled in the web action widgets, this is the deep link in the
|
|
465
458
|
* `continueUrl` query parameter.
|
|
466
459
|
* - When the link is handled in the app directly, this is the `continueUrl` query parameter in
|
|
467
|
-
* the deep link of the Dynamic Link.
|
|
460
|
+
* the deep link of the Dynamic Link or Hosting link.
|
|
468
461
|
*/
|
|
469
462
|
url: string;
|
|
470
463
|
/**
|
|
@@ -473,8 +466,20 @@ export interface ActionCodeSettings {
|
|
|
473
466
|
*
|
|
474
467
|
*
|
|
475
468
|
* @defaultValue The first domain is automatically selected.
|
|
469
|
+
*
|
|
470
|
+
* @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
|
|
471
|
+
* 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
|
|
472
|
+
* links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
|
|
476
473
|
*/
|
|
477
474
|
dynamicLinkDomain?: string;
|
|
475
|
+
/**
|
|
476
|
+
* The optional custom Firebase Hosting domain to use when the link is to be opened via
|
|
477
|
+
* a specified mobile app. The domain must be configured in Firebase Hosting and owned
|
|
478
|
+
* by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
|
|
479
|
+
*
|
|
480
|
+
* @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
|
|
481
|
+
*/
|
|
482
|
+
linkDomain?: string;
|
|
478
483
|
}
|
|
479
484
|
/**
|
|
480
485
|
* A verifier for domain verification and abuse prevention.
|
package/dist/index.webworker.js
CHANGED
|
@@ -176,7 +176,9 @@ function _debugErrorMap() {
|
|
|
176
176
|
["invalid-req-type" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',
|
|
177
177
|
["invalid-recaptcha-version" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',
|
|
178
178
|
["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.',
|
|
179
|
-
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'
|
|
179
|
+
["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.',
|
|
180
|
+
["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 ' +
|
|
181
|
+
'the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).'
|
|
180
182
|
};
|
|
181
183
|
}
|
|
182
184
|
function _prodErrorMap() {
|
|
@@ -321,7 +323,8 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
|
|
|
321
323
|
MISSING_CLIENT_TYPE: 'auth/missing-client-type',
|
|
322
324
|
MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
|
|
323
325
|
INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
|
|
324
|
-
INVALID_REQ_TYPE: 'auth/invalid-req-type'
|
|
326
|
+
INVALID_REQ_TYPE: 'auth/invalid-req-type',
|
|
327
|
+
INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
|
|
325
328
|
};
|
|
326
329
|
|
|
327
330
|
/**
|
|
@@ -527,7 +530,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
527
530
|
}
|
|
528
531
|
|
|
529
532
|
var name = "@firebase/auth";
|
|
530
|
-
var version = "1.8.2-canary.
|
|
533
|
+
var version = "1.8.2-canary.313faf66b";
|
|
531
534
|
|
|
532
535
|
/**
|
|
533
536
|
* @license
|
|
@@ -6614,8 +6617,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
|
|
|
6614
6617
|
_assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
|
|
6615
6618
|
_assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
|
|
6616
6619
|
actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
|
|
6620
|
+
_assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
|
|
6621
|
+
actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
|
|
6617
6622
|
request.continueUrl = actionCodeSettings.url;
|
|
6618
6623
|
request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
|
|
6624
|
+
request.linkDomain = actionCodeSettings.linkDomain;
|
|
6619
6625
|
request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
|
|
6620
6626
|
if (actionCodeSettings.iOS) {
|
|
6621
6627
|
_assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
|