@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.
Files changed (85) hide show
  1. package/dist/auth-public.d.ts +15 -9
  2. package/dist/auth.d.ts +17 -10
  3. package/dist/browser-cjs/{index-05dea0e3.js → index-4febff3b.js} +10 -4
  4. package/dist/browser-cjs/index-4febff3b.js.map +1 -0
  5. package/dist/browser-cjs/index.js +1 -1
  6. package/dist/browser-cjs/internal.js +1 -1
  7. package/dist/browser-cjs/src/api/authentication/email_and_password.d.ts +1 -0
  8. package/dist/browser-cjs/src/api/errors.d.ts +2 -1
  9. package/dist/browser-cjs/src/core/errors.d.ts +3 -1
  10. package/dist/browser-cjs/src/model/public_types.d.ts +14 -9
  11. package/dist/cordova/auth-cordova-public.d.ts +15 -9
  12. package/dist/cordova/auth-cordova.d.ts +17 -10
  13. package/dist/cordova/index.js +2 -2
  14. package/dist/cordova/internal.js +2 -2
  15. package/dist/cordova/{popup_redirect-ddc160b6.js → popup_redirect-e90b1aad.js} +10 -4
  16. package/dist/cordova/popup_redirect-e90b1aad.js.map +1 -0
  17. package/dist/cordova/src/api/authentication/email_and_password.d.ts +1 -0
  18. package/dist/cordova/src/api/errors.d.ts +2 -1
  19. package/dist/cordova/src/core/errors.d.ts +3 -1
  20. package/dist/cordova/src/model/public_types.d.ts +14 -9
  21. package/dist/esm2017/{index-ec72a7f0.js → index-efc59d61.js} +10 -4
  22. package/dist/esm2017/index-efc59d61.js.map +1 -0
  23. package/dist/esm2017/index.js +1 -1
  24. package/dist/esm2017/internal.js +2 -2
  25. package/dist/esm2017/src/api/authentication/email_and_password.d.ts +1 -0
  26. package/dist/esm2017/src/api/errors.d.ts +2 -1
  27. package/dist/esm2017/src/core/errors.d.ts +3 -1
  28. package/dist/esm2017/src/model/public_types.d.ts +14 -9
  29. package/dist/index.webworker.js +9 -3
  30. package/dist/index.webworker.js.map +1 -1
  31. package/dist/node/index.js +1 -1
  32. package/dist/node/internal.js +1 -1
  33. package/dist/node/src/api/authentication/email_and_password.d.ts +1 -0
  34. package/dist/node/src/api/errors.d.ts +2 -1
  35. package/dist/node/src/core/errors.d.ts +3 -1
  36. package/dist/node/src/model/public_types.d.ts +14 -9
  37. package/dist/node/{totp-5687ebe6.js → totp-030e3182.js} +10 -4
  38. package/dist/node/totp-030e3182.js.map +1 -0
  39. package/dist/node-esm/index.js +1 -1
  40. package/dist/node-esm/internal.js +2 -2
  41. package/dist/node-esm/src/api/authentication/email_and_password.d.ts +1 -0
  42. package/dist/node-esm/src/api/errors.d.ts +2 -1
  43. package/dist/node-esm/src/core/errors.d.ts +3 -1
  44. package/dist/node-esm/src/model/public_types.d.ts +14 -9
  45. package/dist/node-esm/{totp-70d52d77.js → totp-0ac3e2b3.js} +10 -4
  46. package/dist/node-esm/totp-0ac3e2b3.js.map +1 -0
  47. package/dist/rn/{index-2d8ece80.js → index-837c72e5.js} +10 -4
  48. package/dist/rn/index-837c72e5.js.map +1 -0
  49. package/dist/rn/index.js +1 -1
  50. package/dist/rn/internal.js +1 -1
  51. package/dist/rn/src/api/authentication/email_and_password.d.ts +1 -0
  52. package/dist/rn/src/api/errors.d.ts +2 -1
  53. package/dist/rn/src/core/errors.d.ts +3 -1
  54. package/dist/rn/src/model/public_types.d.ts +14 -9
  55. package/dist/src/api/authentication/email_and_password.d.ts +1 -0
  56. package/dist/src/api/errors.d.ts +2 -1
  57. package/dist/src/core/errors.d.ts +3 -1
  58. package/dist/src/model/public_types.d.ts +14 -9
  59. package/dist/web-extension-cjs/index.js +1 -1
  60. package/dist/web-extension-cjs/internal.js +1 -1
  61. package/dist/web-extension-cjs/{register-41c7b66e.js → register-de115292.js} +10 -4
  62. package/dist/web-extension-cjs/register-de115292.js.map +1 -0
  63. package/dist/web-extension-cjs/src/api/authentication/email_and_password.d.ts +1 -0
  64. package/dist/web-extension-cjs/src/api/errors.d.ts +2 -1
  65. package/dist/web-extension-cjs/src/core/errors.d.ts +3 -1
  66. package/dist/web-extension-cjs/src/model/public_types.d.ts +14 -9
  67. package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +15 -9
  68. package/dist/web-extension-esm2017/auth-web-extension.d.ts +17 -10
  69. package/dist/web-extension-esm2017/index.js +2 -2
  70. package/dist/web-extension-esm2017/internal.js +2 -2
  71. package/dist/web-extension-esm2017/{register-e512ccb2.js → register-acacb3a9.js} +10 -4
  72. package/dist/web-extension-esm2017/register-acacb3a9.js.map +1 -0
  73. package/dist/web-extension-esm2017/src/api/authentication/email_and_password.d.ts +1 -0
  74. package/dist/web-extension-esm2017/src/api/errors.d.ts +2 -1
  75. package/dist/web-extension-esm2017/src/core/errors.d.ts +3 -1
  76. package/dist/web-extension-esm2017/src/model/public_types.d.ts +14 -9
  77. package/package.json +6 -6
  78. package/dist/browser-cjs/index-05dea0e3.js.map +0 -1
  79. package/dist/cordova/popup_redirect-ddc160b6.js.map +0 -1
  80. package/dist/esm2017/index-ec72a7f0.js.map +0 -1
  81. package/dist/node/totp-5687ebe6.js.map +0 -1
  82. package/dist/node-esm/totp-70d52d77.js.map +0 -1
  83. package/dist/rn/index-2d8ece80.js.map +0 -1
  84. package/dist/web-extension-cjs/register-41c7b66e.js.map +0 -1
  85. package/dist/web-extension-esm2017/register-e512ccb2.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-05dea0e3.js');
5
+ var index = require('./index-4febff3b.js');
6
6
  require('@firebase/app');
7
7
  require('@firebase/util');
8
8
  require('@firebase/logger');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-05dea0e3.js');
5
+ var index = require('./index-4febff3b.js');
6
6
  var util = require('@firebase/util');
7
7
  require('@firebase/app');
8
8
  require('@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 android app if it is
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.
@@ -78,12 +78,7 @@ export declare interface ActionCodeSettings {
78
78
  * Sets the Android package name.
79
79
  *
80
80
  * @remarks
81
- * This will try to open the link in an android app if it is
82
- * installed. If `installApp` is passed, it specifies whether to install the Android app if the
83
- * device supports it and the app is not already installed. If this field is provided without
84
- * a `packageName`, an error is thrown explaining that the `packageName` must be provided in
85
- * conjunction with this field. If `minimumVersion` is specified, and an older version of the
86
- * app is installed, the user is taken to the Play Store to upgrade the app.
81
+ * This will try to open the link in an Android app if it is installed.
87
82
  */
88
83
  android?: {
89
84
  installApp?: boolean;
@@ -106,8 +101,6 @@ export declare interface ActionCodeSettings {
106
101
  *
107
102
  * @remarks
108
103
  * This will try to open the link in an iOS app if it is installed.
109
- *
110
- * App installation is not supported for iOS.
111
104
  */
112
105
  iOS?: {
113
106
  bundleId: string;
@@ -120,7 +113,7 @@ export declare interface ActionCodeSettings {
120
113
  * - When the link is handled in the web action widgets, this is the deep link in the
121
114
  * `continueUrl` query parameter.
122
115
  * - When the link is handled in the app directly, this is the `continueUrl` query parameter in
123
- * the deep link of the Dynamic Link.
116
+ * the deep link of the Dynamic Link or Hosting link.
124
117
  */
125
118
  url: string;
126
119
  /**
@@ -129,8 +122,20 @@ export declare interface ActionCodeSettings {
129
122
  *
130
123
  *
131
124
  * @defaultValue The first domain is automatically selected.
125
+ *
126
+ * @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
127
+ * 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
128
+ * links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
132
129
  */
133
130
  dynamicLinkDomain?: string;
131
+ /**
132
+ * The optional custom Firebase Hosting domain to use when the link is to be opened via
133
+ * a specified mobile app. The domain must be configured in Firebase Hosting and owned
134
+ * by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
135
+ *
136
+ * @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
137
+ */
138
+ linkDomain?: string;
134
139
  }
135
140
 
136
141
  /**
@@ -599,6 +604,7 @@ export declare const AuthErrorCodes: {
599
604
  readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
600
605
  readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
601
606
  readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
607
+ readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
602
608
  };
603
609
 
604
610
  /**
@@ -78,12 +78,7 @@ export declare interface ActionCodeSettings {
78
78
  * Sets the Android package name.
79
79
  *
80
80
  * @remarks
81
- * This will try to open the link in an android app if it is
82
- * installed. If `installApp` is passed, it specifies whether to install the Android app if the
83
- * device supports it and the app is not already installed. If this field is provided without
84
- * a `packageName`, an error is thrown explaining that the `packageName` must be provided in
85
- * conjunction with this field. If `minimumVersion` is specified, and an older version of the
86
- * app is installed, the user is taken to the Play Store to upgrade the app.
81
+ * This will try to open the link in an Android app if it is installed.
87
82
  */
88
83
  android?: {
89
84
  installApp?: boolean;
@@ -106,8 +101,6 @@ export declare interface ActionCodeSettings {
106
101
  *
107
102
  * @remarks
108
103
  * This will try to open the link in an iOS app if it is installed.
109
- *
110
- * App installation is not supported for iOS.
111
104
  */
112
105
  iOS?: {
113
106
  bundleId: string;
@@ -120,7 +113,7 @@ export declare interface ActionCodeSettings {
120
113
  * - When the link is handled in the web action widgets, this is the deep link in the
121
114
  * `continueUrl` query parameter.
122
115
  * - When the link is handled in the app directly, this is the `continueUrl` query parameter in
123
- * the deep link of the Dynamic Link.
116
+ * the deep link of the Dynamic Link or Hosting link.
124
117
  */
125
118
  url: string;
126
119
  /**
@@ -129,8 +122,20 @@ export declare interface ActionCodeSettings {
129
122
  *
130
123
  *
131
124
  * @defaultValue The first domain is automatically selected.
125
+ *
126
+ * @deprecated Firebase Dynamic Links is deprecated and will be shut down as early as August
127
+ * 2025. Instead, use {@link ActionCodeSettings.linkDomain} to set a custom domain for mobile
128
+ * links. Learn more in the {@link https://firebase.google.com/support/dynamic-links-faq | Dynamic Links deprecation FAQ}.
132
129
  */
133
130
  dynamicLinkDomain?: string;
131
+ /**
132
+ * The optional custom Firebase Hosting domain to use when the link is to be opened via
133
+ * a specified mobile app. The domain must be configured in Firebase Hosting and owned
134
+ * by the project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).
135
+ *
136
+ * @defaultValue The default Hosting domain will be used (for example, `example.firebaseapp.com`).
137
+ */
138
+ linkDomain?: string;
134
139
  }
135
140
 
136
141
  /**
@@ -619,7 +624,8 @@ declare const enum AuthErrorCode {
619
624
  INVALID_RECAPTCHA_VERSION = "invalid-recaptcha-version",
620
625
  INVALID_REQ_TYPE = "invalid-req-type",
621
626
  UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = "unsupported-password-policy-schema-version",
622
- PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements"
627
+ PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements",
628
+ INVALID_HOSTING_LINK_DOMAIN = "invalid-hosting-link-domain"
623
629
  }
624
630
 
625
631
  /**
@@ -738,6 +744,7 @@ export declare const AuthErrorCodes: {
738
744
  readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
739
745
  readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
740
746
  readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
747
+ readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
741
748
  };
742
749
 
743
750
  /**
@@ -1,6 +1,6 @@
1
1
  import { _getProvider, getApp } from '@firebase/app';
2
- import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-ddc160b6.js';
3
- export { A as ActionCodeOperation, a6 as ActionCodeURL, y as AuthCredential, w as AuthErrorCodes, E as EmailAuthCredential, D as EmailAuthProvider, G as FacebookAuthProvider, F as FactorId, I as GithubAuthProvider, H as GoogleAuthProvider, z as OAuthCredential, J as OAuthProvider, O as OperationType, B as PhoneAuthCredential, P as ProviderId, K as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, W as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, X as checkActionCode, V as confirmPasswordReset, x as connectAuthEmulator, d as cordovaPopupRedirectResolver, Z as createUserWithEmailAndPassword, q as debugErrorMap, p as deleteUser, a3 as fetchSignInMethodsForEmail, ae as getAdditionalUserInfo, ab as getIdToken, ac as getIdTokenResult, ag as getMultiFactorResolver, g as getRedirectResult, C as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a1 as isSignInWithEmailLink, N as linkWithCredential, ah as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a7 as parseActionCodeURL, t as prodErrorMap, Q as reauthenticateWithCredential, af as reload, n as revokeAccessToken, a4 as sendEmailVerification, U as sendPasswordResetEmail, a0 as sendSignInLinkToEmail, s as setPersistence, L as signInAnonymously, M as signInWithCredential, R as signInWithCustomToken, $ as signInWithEmailAndPassword, a2 as signInWithEmailLink, m as signOut, ad as unlink, l as updateCurrentUser, a9 as updateEmail, aa as updatePassword, a8 as updateProfile, u as useDeviceLanguage, v as validatePassword, a5 as verifyBeforeUpdateEmail, Y as verifyPasswordResetCode } from './popup_redirect-ddc160b6.js';
2
+ import { _ as _signInWithRedirect, a as _reauthenticateWithRedirect, b as _linkWithRedirect, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, d as cordovaPopupRedirectResolver } from './popup_redirect-e90b1aad.js';
3
+ export { A as ActionCodeOperation, a6 as ActionCodeURL, y as AuthCredential, w as AuthErrorCodes, E as EmailAuthCredential, D as EmailAuthProvider, G as FacebookAuthProvider, F as FactorId, I as GithubAuthProvider, H as GoogleAuthProvider, z as OAuthCredential, J as OAuthProvider, O as OperationType, B as PhoneAuthCredential, P as ProviderId, K as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, W as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, X as checkActionCode, V as confirmPasswordReset, x as connectAuthEmulator, d as cordovaPopupRedirectResolver, Z as createUserWithEmailAndPassword, q as debugErrorMap, p as deleteUser, a3 as fetchSignInMethodsForEmail, ae as getAdditionalUserInfo, ab as getIdToken, ac as getIdTokenResult, ag as getMultiFactorResolver, g as getRedirectResult, C as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a1 as isSignInWithEmailLink, N as linkWithCredential, ah as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a7 as parseActionCodeURL, t as prodErrorMap, Q as reauthenticateWithCredential, af as reload, n as revokeAccessToken, a4 as sendEmailVerification, U as sendPasswordResetEmail, a0 as sendSignInLinkToEmail, s as setPersistence, L as signInAnonymously, M as signInWithCredential, R as signInWithCustomToken, $ as signInWithEmailAndPassword, a2 as signInWithEmailLink, m as signOut, ad as unlink, l as updateCurrentUser, a9 as updateEmail, aa as updatePassword, a8 as updateProfile, u as useDeviceLanguage, v as validatePassword, a5 as verifyBeforeUpdateEmail, Y as verifyPasswordResetCode } from './popup_redirect-e90b1aad.js';
4
4
  import '@firebase/util';
5
5
  import 'tslib';
6
6
  import '@firebase/component';
@@ -1,5 +1,5 @@
1
- import { ai as _performApiRequest, aj as _addTidIfNecessary, ak as Delay, al as _window, am as _assert, an as isV2, ao as _createError, ap as _recaptchaV2ScriptUrl, aq as _loadJS, ar as MockReCaptcha, as as _generateCallbackName, at as _castAuth, au as _isHttpOrHttps, av as _isWorker, aw as getRecaptchaParams, ax as _serverAppCurrentUserOperationNotSupportedError, M as signInWithCredential, ay as _assertLinkedStatus, N as linkWithCredential, Q as reauthenticateWithCredential, az as _initializeRecaptchaConfig, aA as FAKE_TOKEN, aB as startEnrollPhoneMfa, aC as handleRecaptchaFlow, aD as sendPhoneVerificationCode, aE as _link, B as PhoneAuthCredential, aF as _assertInstanceOf, aG as _withDefaultResolver, aH as AbstractPopupRedirectOperation, aI as debugAssert, aJ as _generateEventId, aK as FederatedAuthProvider, aL as _getProjectConfig, aM as _fail, aN as _getCurrentUrl, aO as _gapiScriptUrl, aP as _emulatorUrl, aQ as _isChromeIOS, aR as _isFirefox, aS as _isIOSStandalone, f as browserSessionPersistence, aT as _getRedirectResult, aU as _overrideRedirectResult, aV as _getRedirectUrl, aW as _setWindowLocation, aX as _isMobileBrowser, aY as _isSafari, aZ as _isIOS, a_ as AuthEventManager, a$ as debugFail, b0 as finalizeEnrollPhoneMfa, b1 as startEnrollTotpMfa, b2 as finalizeEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, x as connectAuthEmulator, b3 as _setExternalJSProvider } from './popup_redirect-ddc160b6.js';
2
- export { A as ActionCodeOperation, a6 as ActionCodeURL, y as AuthCredential, w as AuthErrorCodes, b7 as AuthImpl, E as EmailAuthCredential, D as EmailAuthProvider, G as FacebookAuthProvider, F as FactorId, b9 as FetchProvider, I as GithubAuthProvider, H as GoogleAuthProvider, z as OAuthCredential, J as OAuthProvider, O as OperationType, B as PhoneAuthCredential, P as ProviderId, ba as SAMLAuthCredential, K as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, b5 as UserImpl, am as _assert, at as _castAuth, aM as _fail, aJ as _generateEventId, b8 as _getClientVersion, b6 as _getInstance, aT as _getRedirectResult, aU as _overrideRedirectResult, b4 as _persistenceKeyName, W as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, X as checkActionCode, V as confirmPasswordReset, x as connectAuthEmulator, d as cordovaPopupRedirectResolver, Z as createUserWithEmailAndPassword, q as debugErrorMap, p as deleteUser, a3 as fetchSignInMethodsForEmail, ae as getAdditionalUserInfo, ab as getIdToken, ac as getIdTokenResult, ag as getMultiFactorResolver, g as getRedirectResult, C as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a1 as isSignInWithEmailLink, N as linkWithCredential, bc as linkWithRedirect, ah as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a7 as parseActionCodeURL, t as prodErrorMap, Q as reauthenticateWithCredential, bd as reauthenticateWithRedirect, af as reload, n as revokeAccessToken, a4 as sendEmailVerification, U as sendPasswordResetEmail, a0 as sendSignInLinkToEmail, s as setPersistence, L as signInAnonymously, M as signInWithCredential, R as signInWithCustomToken, $ as signInWithEmailAndPassword, a2 as signInWithEmailLink, bb as signInWithRedirect, m as signOut, ad as unlink, l as updateCurrentUser, a9 as updateEmail, aa as updatePassword, a8 as updateProfile, u as useDeviceLanguage, v as validatePassword, a5 as verifyBeforeUpdateEmail, Y as verifyPasswordResetCode } from './popup_redirect-ddc160b6.js';
1
+ import { ai as _performApiRequest, aj as _addTidIfNecessary, ak as Delay, al as _window, am as _assert, an as isV2, ao as _createError, ap as _recaptchaV2ScriptUrl, aq as _loadJS, ar as MockReCaptcha, as as _generateCallbackName, at as _castAuth, au as _isHttpOrHttps, av as _isWorker, aw as getRecaptchaParams, ax as _serverAppCurrentUserOperationNotSupportedError, M as signInWithCredential, ay as _assertLinkedStatus, N as linkWithCredential, Q as reauthenticateWithCredential, az as _initializeRecaptchaConfig, aA as FAKE_TOKEN, aB as startEnrollPhoneMfa, aC as handleRecaptchaFlow, aD as sendPhoneVerificationCode, aE as _link, B as PhoneAuthCredential, aF as _assertInstanceOf, aG as _withDefaultResolver, aH as AbstractPopupRedirectOperation, aI as debugAssert, aJ as _generateEventId, aK as FederatedAuthProvider, aL as _getProjectConfig, aM as _fail, aN as _getCurrentUrl, aO as _gapiScriptUrl, aP as _emulatorUrl, aQ as _isChromeIOS, aR as _isFirefox, aS as _isIOSStandalone, f as browserSessionPersistence, aT as _getRedirectResult, aU as _overrideRedirectResult, aV as _getRedirectUrl, aW as _setWindowLocation, aX as _isMobileBrowser, aY as _isSafari, aZ as _isIOS, a_ as AuthEventManager, a$ as debugFail, b0 as finalizeEnrollPhoneMfa, b1 as startEnrollTotpMfa, b2 as finalizeEnrollTotpMfa, r as registerAuth, i as initializeAuth, c as indexedDBLocalPersistence, e as browserLocalPersistence, j as beforeAuthStateChanged, o as onIdTokenChanged, x as connectAuthEmulator, b3 as _setExternalJSProvider } from './popup_redirect-e90b1aad.js';
2
+ export { A as ActionCodeOperation, a6 as ActionCodeURL, y as AuthCredential, w as AuthErrorCodes, b7 as AuthImpl, E as EmailAuthCredential, D as EmailAuthProvider, G as FacebookAuthProvider, F as FactorId, b9 as FetchProvider, I as GithubAuthProvider, H as GoogleAuthProvider, z as OAuthCredential, J as OAuthProvider, O as OperationType, B as PhoneAuthCredential, P as ProviderId, ba as SAMLAuthCredential, K as SAMLAuthProvider, S as SignInMethod, T as TwitterAuthProvider, b5 as UserImpl, am as _assert, at as _castAuth, aM as _fail, aJ as _generateEventId, b8 as _getClientVersion, b6 as _getInstance, aT as _getRedirectResult, aU as _overrideRedirectResult, b4 as _persistenceKeyName, W as applyActionCode, j as beforeAuthStateChanged, e as browserLocalPersistence, f as browserSessionPersistence, X as checkActionCode, V as confirmPasswordReset, x as connectAuthEmulator, d as cordovaPopupRedirectResolver, Z as createUserWithEmailAndPassword, q as debugErrorMap, p as deleteUser, a3 as fetchSignInMethodsForEmail, ae as getAdditionalUserInfo, ab as getIdToken, ac as getIdTokenResult, ag as getMultiFactorResolver, g as getRedirectResult, C as inMemoryPersistence, c as indexedDBLocalPersistence, i as initializeAuth, h as initializeRecaptchaConfig, a1 as isSignInWithEmailLink, N as linkWithCredential, bc as linkWithRedirect, ah as multiFactor, k as onAuthStateChanged, o as onIdTokenChanged, a7 as parseActionCodeURL, t as prodErrorMap, Q as reauthenticateWithCredential, bd as reauthenticateWithRedirect, af as reload, n as revokeAccessToken, a4 as sendEmailVerification, U as sendPasswordResetEmail, a0 as sendSignInLinkToEmail, s as setPersistence, L as signInAnonymously, M as signInWithCredential, R as signInWithCustomToken, $ as signInWithEmailAndPassword, a2 as signInWithEmailLink, bb as signInWithRedirect, m as signOut, ad as unlink, l as updateCurrentUser, a9 as updateEmail, aa as updatePassword, a8 as updateProfile, u as useDeviceLanguage, v as validatePassword, a5 as verifyBeforeUpdateEmail, Y as verifyPasswordResetCode } from './popup_redirect-e90b1aad.js';
3
3
  import { querystring, getModularInstance, getUA, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';
4
4
  import { _isFirebaseServerApp, SDK_VERSION, _getProvider, getApp } from '@firebase/app';
5
5
  import 'tslib';
@@ -878,7 +878,9 @@ function _debugErrorMap() {
878
878
  ["invalid-req-type" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',
879
879
  ["invalid-recaptcha-version" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',
880
880
  ["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.',
881
- ["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'
881
+ ["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.',
882
+ ["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 ' +
883
+ 'the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).'
882
884
  };
883
885
  }
884
886
  function _prodErrorMap() {
@@ -1023,7 +1025,8 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
1023
1025
  MISSING_CLIENT_TYPE: 'auth/missing-client-type',
1024
1026
  MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
1025
1027
  INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
1026
- INVALID_REQ_TYPE: 'auth/invalid-req-type'
1028
+ INVALID_REQ_TYPE: 'auth/invalid-req-type',
1029
+ INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
1027
1030
  };
1028
1031
 
1029
1032
  /**
@@ -6538,8 +6541,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
6538
6541
  _assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
6539
6542
  _assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
6540
6543
  actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
6544
+ _assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
6545
+ actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
6541
6546
  request.continueUrl = actionCodeSettings.url;
6542
6547
  request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
6548
+ request.linkDomain = actionCodeSettings.linkDomain;
6543
6549
  request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
6544
6550
  if (actionCodeSettings.iOS) {
6545
6551
  _assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
@@ -7815,7 +7821,7 @@ function multiFactor(user) {
7815
7821
  }
7816
7822
 
7817
7823
  var name = "@firebase/auth";
7818
- var version = "1.8.2-canary.2f92a7402";
7824
+ var version = "1.8.2-canary.313faf66b";
7819
7825
 
7820
7826
  /**
7821
7827
  * @license
@@ -9635,4 +9641,4 @@ function generateNoEvent() {
9635
9641
  }
9636
9642
 
9637
9643
  export { signInWithEmailAndPassword as $, ActionCodeOperation as A, PhoneAuthCredential as B, inMemoryPersistence as C, EmailAuthProvider as D, EmailAuthCredential as E, FactorId as F, FacebookAuthProvider as G, GoogleAuthProvider as H, GithubAuthProvider as I, OAuthProvider as J, SAMLAuthProvider as K, signInAnonymously as L, signInWithCredential as M, linkWithCredential as N, OperationType as O, ProviderId as P, reauthenticateWithCredential as Q, signInWithCustomToken as R, SignInMethod as S, TwitterAuthProvider as T, sendPasswordResetEmail as U, confirmPasswordReset as V, applyActionCode as W, checkActionCode as X, verifyPasswordResetCode as Y, createUserWithEmailAndPassword as Z, _signInWithRedirect as _, _reauthenticateWithRedirect as a, debugFail as a$, sendSignInLinkToEmail as a0, isSignInWithEmailLink as a1, signInWithEmailLink as a2, fetchSignInMethodsForEmail as a3, sendEmailVerification as a4, verifyBeforeUpdateEmail as a5, ActionCodeURL as a6, parseActionCodeURL as a7, updateProfile as a8, updateEmail as a9, FAKE_TOKEN as aA, startEnrollPhoneMfa as aB, handleRecaptchaFlow as aC, sendPhoneVerificationCode as aD, _link$1 as aE, _assertInstanceOf as aF, _withDefaultResolver as aG, AbstractPopupRedirectOperation as aH, debugAssert as aI, _generateEventId as aJ, FederatedAuthProvider as aK, _getProjectConfig as aL, _fail as aM, _getCurrentUrl as aN, _gapiScriptUrl as aO, _emulatorUrl as aP, _isChromeIOS as aQ, _isFirefox as aR, _isIOSStandalone as aS, _getRedirectResult as aT, _overrideRedirectResult as aU, _getRedirectUrl as aV, _setWindowLocation as aW, _isMobileBrowser as aX, _isSafari as aY, _isIOS as aZ, AuthEventManager as a_, updatePassword as aa, getIdToken as ab, getIdTokenResult as ac, unlink as ad, getAdditionalUserInfo as ae, reload as af, getMultiFactorResolver as ag, multiFactor as ah, _performApiRequest as ai, _addTidIfNecessary as aj, Delay as ak, _window as al, _assert as am, isV2 as an, _createError as ao, _recaptchaV2ScriptUrl as ap, _loadJS as aq, MockReCaptcha as ar, _generateCallbackName as as, _castAuth as at, _isHttpOrHttps as au, _isWorker as av, getRecaptchaParams as aw, _serverAppCurrentUserOperationNotSupportedError as ax, _assertLinkedStatus as ay, _initializeRecaptchaConfig as az, _linkWithRedirect as b, finalizeEnrollPhoneMfa as b0, startEnrollTotpMfa as b1, finalizeEnrollTotpMfa as b2, _setExternalJSProvider as b3, _persistenceKeyName as b4, UserImpl as b5, _getInstance as b6, AuthImpl as b7, _getClientVersion as b8, FetchProvider as b9, SAMLAuthCredential as ba, signInWithRedirect as bb, linkWithRedirect as bc, reauthenticateWithRedirect as bd, indexedDBLocalPersistence as c, cordovaPopupRedirectResolver as d, browserLocalPersistence as e, browserSessionPersistence as f, getRedirectResult as g, initializeRecaptchaConfig as h, initializeAuth as i, beforeAuthStateChanged as j, onAuthStateChanged as k, updateCurrentUser as l, signOut as m, revokeAccessToken as n, onIdTokenChanged as o, deleteUser as p, debugErrorMap as q, registerAuth as r, setPersistence as s, prodErrorMap as t, useDeviceLanguage as u, validatePassword as v, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as w, connectAuthEmulator as x, AuthCredential as y, OAuthCredential as z };
9638
- //# sourceMappingURL=popup_redirect-ddc160b6.js.map
9644
+ //# sourceMappingURL=popup_redirect-e90b1aad.js.map