@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.
@@ -275,7 +275,9 @@ function _debugErrorMap() {
275
275
  ["invalid-req-type" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',
276
276
  ["invalid-recaptcha-version" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',
277
277
  ["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.',
278
- ["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'
278
+ ["password-does-not-meet-requirements" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.',
279
+ ["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 ' +
280
+ 'the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`).'
279
281
  };
280
282
  }
281
283
  function _prodErrorMap() {
@@ -420,7 +422,8 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
420
422
  MISSING_CLIENT_TYPE: 'auth/missing-client-type',
421
423
  MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',
422
424
  INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',
423
- INVALID_REQ_TYPE: 'auth/invalid-req-type'
425
+ INVALID_REQ_TYPE: 'auth/invalid-req-type',
426
+ INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
424
427
  };
425
428
 
426
429
  /**
@@ -5935,8 +5938,11 @@ function _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {
5935
5938
  _assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, "invalid-continue-uri" /* AuthErrorCode.INVALID_CONTINUE_URI */);
5936
5939
  _assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||
5937
5940
  actionCodeSettings.dynamicLinkDomain.length > 0, auth, "invalid-dynamic-link-domain" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);
5941
+ _assert(typeof actionCodeSettings.linkDomain === 'undefined' ||
5942
+ actionCodeSettings.linkDomain.length > 0, auth, "invalid-hosting-link-domain" /* AuthErrorCode.INVALID_HOSTING_LINK_DOMAIN */);
5938
5943
  request.continueUrl = actionCodeSettings.url;
5939
5944
  request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;
5945
+ request.linkDomain = actionCodeSettings.linkDomain;
5940
5946
  request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;
5941
5947
  if (actionCodeSettings.iOS) {
5942
5948
  _assert(actionCodeSettings.iOS.bundleId.length > 0, auth, "missing-ios-bundle-id" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);
@@ -10659,7 +10665,7 @@ function _isEmptyString(input) {
10659
10665
  }
10660
10666
 
10661
10667
  var name = "@firebase/auth";
10662
- var version = "1.8.2-canary.2f92a7402";
10668
+ var version = "1.8.2-canary.313faf66b";
10663
10669
 
10664
10670
  /**
10665
10671
  * @license
@@ -10914,4 +10920,4 @@ _setExternalJSProvider({
10914
10920
  registerAuth("Browser" /* ClientPlatform.BROWSER */);
10915
10921
 
10916
10922
  export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _isIOS7Or8 as aA, _createError as aB, _assert as aC, AuthEventManager as aD, _getInstance as aE, _persistenceKeyName as aF, _getRedirectResult as aG, _overrideRedirectResult as aH, _clearRedirectOutcomes as aI, _castAuth as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, _generateEventId as aN, AuthPopup as aO, FetchProvider as aP, SAMLAuthCredential as aQ, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, debugAssert as au, _isIOS as av, _isAndroid as aw, _fail as ax, _getRedirectUrl as ay, _getProjectConfig as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };
10917
- //# sourceMappingURL=index-ec72a7f0.js.map
10923
+ //# sourceMappingURL=index-efc59d61.js.map