@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
@@ -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 @@ 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 @@ 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 @@ 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 @@ 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
  /**
@@ -578,6 +583,7 @@ export declare const AuthErrorCodes: {
578
583
  readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
579
584
  readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
580
585
  readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
586
+ readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
581
587
  };
582
588
 
583
589
  /**
@@ -78,12 +78,7 @@ 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 @@ 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 @@ 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 @@ 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
  /**
@@ -598,7 +603,8 @@ declare const enum AuthErrorCode {
598
603
  INVALID_RECAPTCHA_VERSION = "invalid-recaptcha-version",
599
604
  INVALID_REQ_TYPE = "invalid-req-type",
600
605
  UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = "unsupported-password-policy-schema-version",
601
- PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements"
606
+ PASSWORD_DOES_NOT_MEET_REQUIREMENTS = "password-does-not-meet-requirements",
607
+ INVALID_HOSTING_LINK_DOMAIN = "invalid-hosting-link-domain"
602
608
  }
603
609
 
604
610
  /**
@@ -717,6 +723,7 @@ export declare const AuthErrorCodes: {
717
723
  readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
718
724
  readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
719
725
  readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
726
+ readonly INVALID_HOSTING_LINK_DOMAIN: "auth/invalid-hosting-link-domain";
720
727
  };
721
728
 
722
729
  /**
@@ -1,5 +1,5 @@
1
- import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-e512ccb2.js';
2
- export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-e512ccb2.js';
1
+ import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-acacb3a9.js';
2
+ export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-acacb3a9.js';
3
3
  import { _getProvider, getApp } from '@firebase/app';
4
4
  import { getDefaultEmulatorHost } from '@firebase/util';
5
5
  import 'tslib';
@@ -1,5 +1,5 @@
1
- import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isMobileBrowser, aa as _isIE10, ab as Delay, ac as _window, ad as _assert, ae as isV2, af as _createError, ag as _recaptchaV2ScriptUrl, ah as _loadJS, ai as MockReCaptcha, aj as _generateCallbackName, ak as _castAuth, al as _isHttpOrHttps, am as _isWorker, an as getRecaptchaParams, ao as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ap as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, aq as _initializeRecaptchaConfig, ar as FAKE_TOKEN, as as startEnrollPhoneMfa, at as handleRecaptchaFlow, au as startSignInPhoneMfa, av as sendPhoneVerificationCode, aw as _link$1, P as PhoneAuthCredential, ax as _getInstance, ay as _signInWithCredential, az as _reauthenticate, m as AuthCredential, aA as signInWithIdp, aB as _fail, aC as debugAssert, aD as _assertInstanceOf, aE as _generateEventId, aF as FederatedAuthProvider, aG as _persistenceKeyName, aH as _performApiRequest, aI as _getCurrentUrl, aJ as _gapiScriptUrl, aK as _emulatorUrl, aL as _isChromeIOS, aM as _isFirefox, aN as _isIOSStandalone, aO as BaseOAuthProvider, aP as _setWindowLocation, aQ as _isSafari, aR as _isIOS, aS as MultiFactorAssertionImpl, aT as finalizeEnrollPhoneMfa, aU as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aV as _setExternalJSProvider, aW as _isAndroid, aX as _isIOS7Or8 } from './register-e512ccb2.js';
2
- export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aZ as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, a$ as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, b0 as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aY as UserImpl, ad as _assert, ak as _castAuth, aB as _fail, aE as _generateEventId, a_ as _getClientVersion, ax as _getInstance, aG as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-e512ccb2.js';
1
+ import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isMobileBrowser, aa as _isIE10, ab as Delay, ac as _window, ad as _assert, ae as isV2, af as _createError, ag as _recaptchaV2ScriptUrl, ah as _loadJS, ai as MockReCaptcha, aj as _generateCallbackName, ak as _castAuth, al as _isHttpOrHttps, am as _isWorker, an as getRecaptchaParams, ao as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ap as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, aq as _initializeRecaptchaConfig, ar as FAKE_TOKEN, as as startEnrollPhoneMfa, at as handleRecaptchaFlow, au as startSignInPhoneMfa, av as sendPhoneVerificationCode, aw as _link$1, P as PhoneAuthCredential, ax as _getInstance, ay as _signInWithCredential, az as _reauthenticate, m as AuthCredential, aA as signInWithIdp, aB as _fail, aC as debugAssert, aD as _assertInstanceOf, aE as _generateEventId, aF as FederatedAuthProvider, aG as _persistenceKeyName, aH as _performApiRequest, aI as _getCurrentUrl, aJ as _gapiScriptUrl, aK as _emulatorUrl, aL as _isChromeIOS, aM as _isFirefox, aN as _isIOSStandalone, aO as BaseOAuthProvider, aP as _setWindowLocation, aQ as _isSafari, aR as _isIOS, aS as MultiFactorAssertionImpl, aT as finalizeEnrollPhoneMfa, aU as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aV as _setExternalJSProvider, aW as _isAndroid, aX as _isIOS7Or8 } from './register-acacb3a9.js';
2
+ export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aZ as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, a$ as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, b0 as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aY as UserImpl, ad as _assert, ak as _castAuth, aB as _fail, aE as _generateEventId, a_ as _getClientVersion, ax as _getInstance, aG as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-acacb3a9.js';
3
3
  import { querystring, getModularInstance, getUA, isEmpty, getExperimentalSetting, getDefaultEmulatorHost, querystringDecode } from '@firebase/util';
4
4
  import { _isFirebaseServerApp, SDK_VERSION, _getProvider, getApp } from '@firebase/app';
5
5
  import 'tslib';
@@ -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
  /**
@@ -5836,8 +5839,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
5836
5839
  _assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
5837
5840
  _assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
5838
5841
  actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
5842
+ _assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
5843
+ actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
5839
5844
  request.continueUrl = actionCodeSettings.url;
5840
5845
  request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
5846
+ request.linkDomain = actionCodeSettings.linkDomain;
5841
5847
  request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
5842
5848
  if (actionCodeSettings.iOS) {
5843
5849
  _assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
@@ -8005,7 +8011,7 @@ function _isEmptyString(input) {
8005
8011
  }
8006
8012
 
8007
8013
  var name = "@firebase/auth";
8008
- var version = "1.8.2-canary.2f92a7402";
8014
+ var version = "1.8.2-canary.313faf66b";
8009
8015
 
8010
8016
  /**
8011
8017
  * @license
@@ -8152,4 +8158,4 @@ function registerAuth(clientPlatform) {
8152
8158
  }
8153
8159
 
8154
8160
  export { updateEmail as $, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as A, linkWithCredential as B, reauthenticateWithCredential as C, signInWithCustomToken as D, EmailAuthCredential as E, FacebookAuthProvider as F, GoogleAuthProvider as G, sendPasswordResetEmail as H, confirmPasswordReset as I, applyActionCode as J, checkActionCode as K, verifyPasswordResetCode as L, createUserWithEmailAndPassword as M, signInWithEmailAndPassword as N, OAuthCredential as O, PhoneAuthCredential as P, sendSignInLinkToEmail as Q, isSignInWithEmailLink as R, SAMLAuthProvider as S, TotpMultiFactorGenerator as T, signInWithEmailLink as U, fetchSignInMethodsForEmail as V, sendEmailVerification as W, verifyBeforeUpdateEmail as X, ActionCodeURL as Y, parseActionCodeURL as Z, updateProfile as _, indexedDBLocalPersistence as a, FetchProvider as a$, updatePassword as a0, getIdToken as a1, getIdTokenResult as a2, unlink as a3, getAdditionalUserInfo as a4, reload as a5, getMultiFactorResolver as a6, multiFactor as a7, STORAGE_AVAILABLE_KEY as a8, _isMobileBrowser as a9, signInWithIdp as aA, _fail as aB, debugAssert as aC, _assertInstanceOf as aD, _generateEventId as aE, FederatedAuthProvider as aF, _persistenceKeyName as aG, _performApiRequest as aH, _getCurrentUrl as aI, _gapiScriptUrl as aJ, _emulatorUrl as aK, _isChromeIOS as aL, _isFirefox as aM, _isIOSStandalone as aN, BaseOAuthProvider as aO, _setWindowLocation as aP, _isSafari as aQ, _isIOS as aR, MultiFactorAssertionImpl as aS, finalizeEnrollPhoneMfa as aT, finalizeSignInPhoneMfa as aU, _setExternalJSProvider as aV, _isAndroid as aW, _isIOS7Or8 as aX, UserImpl as aY, AuthImpl as aZ, _getClientVersion as a_, _isIE10 as aa, Delay as ab, _window as ac, _assert as ad, isV2 as ae, _createError as af, _recaptchaV2ScriptUrl as ag, _loadJS as ah, MockReCaptcha as ai, _generateCallbackName as aj, _castAuth as ak, _isHttpOrHttps as al, _isWorker as am, getRecaptchaParams as an, _serverAppCurrentUserOperationNotSupportedError as ao, _assertLinkedStatus as ap, _initializeRecaptchaConfig as aq, FAKE_TOKEN as ar, startEnrollPhoneMfa as as, handleRecaptchaFlow as at, startSignInPhoneMfa as au, sendPhoneVerificationCode as av, _link as aw, _getInstance as ax, _signInWithCredential as ay, _reauthenticate as az, TotpSecret as b, SAMLAuthCredential as b0, connectAuthEmulator as c, initializeRecaptchaConfig as d, beforeAuthStateChanged as e, onAuthStateChanged as f, updateCurrentUser as g, signOut as h, initializeAuth as i, revokeAccessToken as j, deleteUser as k, debugErrorMap as l, AuthCredential as m, inMemoryPersistence as n, onIdTokenChanged as o, prodErrorMap as p, EmailAuthProvider as q, registerAuth as r, setPersistence as s, GithubAuthProvider as t, useDeviceLanguage as u, validatePassword as v, OAuthProvider as w, TwitterAuthProvider as x, signInAnonymously as y, signInWithCredential as z };
8155
- //# sourceMappingURL=register-e512ccb2.js.map
8161
+ //# sourceMappingURL=register-acacb3a9.js.map