@firebase/auth 1.7.5 → 1.7.6-20240730204232

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 (125) hide show
  1. package/README.md +1 -1
  2. package/dist/auth-public.d.ts +4 -4
  3. package/dist/auth.d.ts +4 -4
  4. package/dist/browser-cjs/{index-22b094f0.js → index-5abb3d6f.js} +12 -12
  5. package/dist/browser-cjs/index-5abb3d6f.js.map +1 -0
  6. package/dist/browser-cjs/index.js +1 -1
  7. package/dist/browser-cjs/internal.js +5 -5
  8. package/dist/browser-cjs/internal.js.map +1 -1
  9. package/dist/browser-cjs/src/core/auth/auth_impl.d.ts +1 -1
  10. package/dist/browser-cjs/src/core/providers/github.d.ts +4 -4
  11. package/dist/browser-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  12. package/dist/browser-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  13. package/dist/browser-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  14. package/dist/browser-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  15. package/dist/cordova/auth-cordova-public.d.ts +4 -4
  16. package/dist/cordova/auth-cordova.d.ts +4 -4
  17. package/dist/cordova/index.js +2 -2
  18. package/dist/cordova/internal.js +4 -4
  19. package/dist/cordova/internal.js.map +1 -1
  20. package/dist/cordova/{popup_redirect-31aa6bae.js → popup_redirect-dd5757b3.js} +13 -13
  21. package/dist/cordova/popup_redirect-dd5757b3.js.map +1 -0
  22. package/dist/cordova/src/core/auth/auth_impl.d.ts +1 -1
  23. package/dist/cordova/src/core/providers/github.d.ts +4 -4
  24. package/dist/cordova/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  25. package/dist/cordova/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  26. package/dist/cordova/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  27. package/dist/cordova/test/integration/webdriver/util/idp_page.d.ts +1 -1
  28. package/dist/esm2017/{index-54738136.js → index-8de039e2.js} +12 -12
  29. package/dist/esm2017/index-8de039e2.js.map +1 -0
  30. package/dist/esm2017/index.js +1 -1
  31. package/dist/esm2017/internal.js +6 -6
  32. package/dist/esm2017/internal.js.map +1 -1
  33. package/dist/esm2017/src/core/auth/auth_impl.d.ts +1 -1
  34. package/dist/esm2017/src/core/providers/github.d.ts +4 -4
  35. package/dist/esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  36. package/dist/esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  37. package/dist/esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  38. package/dist/esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  39. package/dist/esm5/{index-5a49f2c0.js → index-123a5a9a.js} +11 -11
  40. package/dist/esm5/index-123a5a9a.js.map +1 -0
  41. package/dist/esm5/index.js +1 -1
  42. package/dist/esm5/internal.js +6 -6
  43. package/dist/esm5/internal.js.map +1 -1
  44. package/dist/esm5/src/core/auth/auth_impl.d.ts +1 -1
  45. package/dist/esm5/src/core/providers/github.d.ts +4 -4
  46. package/dist/esm5/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  47. package/dist/esm5/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  48. package/dist/esm5/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  49. package/dist/esm5/test/integration/webdriver/util/idp_page.d.ts +1 -1
  50. package/dist/index.webworker.esm5.js +8 -8
  51. package/dist/index.webworker.esm5.js.map +1 -1
  52. package/dist/node/index.js +1 -1
  53. package/dist/node/internal.js +5 -5
  54. package/dist/node/internal.js.map +1 -1
  55. package/dist/node/src/core/auth/auth_impl.d.ts +1 -1
  56. package/dist/node/src/core/providers/github.d.ts +4 -4
  57. package/dist/node/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  58. package/dist/node/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  59. package/dist/node/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  60. package/dist/node/test/integration/webdriver/util/idp_page.d.ts +1 -1
  61. package/dist/node/{totp-721eac4b.js → totp-5a720d75.js} +8 -8
  62. package/dist/node/totp-5a720d75.js.map +1 -0
  63. package/dist/node-esm/index.js +1 -1
  64. package/dist/node-esm/internal.js +7 -7
  65. package/dist/node-esm/internal.js.map +1 -1
  66. package/dist/node-esm/src/core/auth/auth_impl.d.ts +1 -1
  67. package/dist/node-esm/src/core/providers/github.d.ts +4 -4
  68. package/dist/node-esm/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  69. package/dist/node-esm/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  70. package/dist/node-esm/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  71. package/dist/node-esm/test/integration/webdriver/util/idp_page.d.ts +1 -1
  72. package/dist/node-esm/{totp-3675c216.js → totp-3e08c124.js} +8 -8
  73. package/dist/node-esm/totp-3e08c124.js.map +1 -0
  74. package/dist/rn/{index-d345c8d7.js → index-5ffd2356.js} +9 -9
  75. package/dist/rn/index-5ffd2356.js.map +1 -0
  76. package/dist/rn/index.js +2 -2
  77. package/dist/rn/index.js.map +1 -1
  78. package/dist/rn/internal.js +7 -7
  79. package/dist/rn/internal.js.map +1 -1
  80. package/dist/rn/src/core/auth/auth_impl.d.ts +1 -1
  81. package/dist/rn/src/core/providers/github.d.ts +4 -4
  82. package/dist/rn/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  83. package/dist/rn/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  84. package/dist/rn/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  85. package/dist/rn/test/integration/webdriver/util/idp_page.d.ts +1 -1
  86. package/dist/src/core/auth/auth_impl.d.ts +1 -1
  87. package/dist/src/core/providers/github.d.ts +4 -4
  88. package/dist/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  89. package/dist/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  90. package/dist/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  91. package/dist/test/integration/webdriver/util/idp_page.d.ts +1 -1
  92. package/dist/web-extension-cjs/index.js +1 -1
  93. package/dist/web-extension-cjs/internal.js +8 -8
  94. package/dist/web-extension-cjs/internal.js.map +1 -1
  95. package/dist/web-extension-cjs/{register-6b27d5d8.js → register-b9f6e07b.js} +9 -9
  96. package/dist/web-extension-cjs/register-b9f6e07b.js.map +1 -0
  97. package/dist/web-extension-cjs/src/core/auth/auth_impl.d.ts +1 -1
  98. package/dist/web-extension-cjs/src/core/providers/github.d.ts +4 -4
  99. package/dist/web-extension-cjs/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  100. package/dist/web-extension-cjs/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  101. package/dist/web-extension-cjs/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  102. package/dist/web-extension-cjs/test/integration/webdriver/util/idp_page.d.ts +1 -1
  103. package/dist/web-extension-esm2017/auth-web-extension-public.d.ts +4 -4
  104. package/dist/web-extension-esm2017/auth-web-extension.d.ts +4 -4
  105. package/dist/web-extension-esm2017/index.js +2 -2
  106. package/dist/web-extension-esm2017/internal.js +9 -9
  107. package/dist/web-extension-esm2017/internal.js.map +1 -1
  108. package/dist/web-extension-esm2017/{register-83348242.js → register-67b84c7c.js} +9 -9
  109. package/dist/web-extension-esm2017/register-67b84c7c.js.map +1 -0
  110. package/dist/web-extension-esm2017/src/core/auth/auth_impl.d.ts +1 -1
  111. package/dist/web-extension-esm2017/src/core/providers/github.d.ts +4 -4
  112. package/dist/web-extension-esm2017/src/platform_browser/messagechannel/receiver.d.ts +1 -1
  113. package/dist/web-extension-esm2017/src/platform_cordova/popup_redirect/events.d.ts +1 -1
  114. package/dist/web-extension-esm2017/test/integration/webdriver/util/auth_driver.d.ts +1 -1
  115. package/dist/web-extension-esm2017/test/integration/webdriver/util/idp_page.d.ts +1 -1
  116. package/package.json +2 -2
  117. package/dist/browser-cjs/index-22b094f0.js.map +0 -1
  118. package/dist/cordova/popup_redirect-31aa6bae.js.map +0 -1
  119. package/dist/esm2017/index-54738136.js.map +0 -1
  120. package/dist/esm5/index-5a49f2c0.js.map +0 -1
  121. package/dist/node/totp-721eac4b.js.map +0 -1
  122. package/dist/node-esm/totp-3675c216.js.map +0 -1
  123. package/dist/rn/index-d345c8d7.js.map +0 -1
  124. package/dist/web-extension-cjs/register-6b27d5d8.js.map +0 -1
  125. package/dist/web-extension-esm2017/register-83348242.js.map +0 -1
@@ -168,7 +168,7 @@ var Receiver = /** @class */ (function () {
168
168
  * Unsubscribe an event handler from a particular event.
169
169
  *
170
170
  * @param eventType - Event name to unsubscribe from.
171
- * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.
171
+ * @param eventHandler - Optional event handler, if none provided, unsubscribe all handlers on this event.
172
172
  *
173
173
  */
174
174
  Receiver.prototype._unsubscribe = function (eventType, eventHandler) {
@@ -973,7 +973,7 @@ function _debugErrorMap() {
973
973
  _a["internal-error" /* AuthErrorCode.INTERNAL_ERROR */] = 'An internal AuthError has occurred.',
974
974
  _a["invalid-app-credential" /* AuthErrorCode.INVALID_APP_CREDENTIAL */] = 'The phone verification request contains an invalid application verifier.' +
975
975
  ' The reCAPTCHA token response is either invalid or expired.',
976
- _a["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */] = 'The mobile app identifier is not registed for the current project.',
976
+ _a["invalid-app-id" /* AuthErrorCode.INVALID_APP_ID */] = 'The mobile app identifier is not registered for the current project.',
977
977
  _a["invalid-user-token" /* AuthErrorCode.INVALID_AUTH */] = "This user's credential isn't valid for this project. This can happen " +
978
978
  "if the user's token has been tampered with, or if the user isn't for " +
979
979
  'the project associated with this API key.',
@@ -4579,7 +4579,7 @@ var AuthImpl = /** @class */ (function () {
4579
4579
  return AuthImpl;
4580
4580
  }());
4581
4581
  /**
4582
- * Method to be used to cast down to our private implmentation of Auth.
4582
+ * Method to be used to cast down to our private implementation of Auth.
4583
4583
  * It will also handle unwrapping from the compat type if necessary
4584
4584
  *
4585
4585
  * @param auth Auth object passed in from developer
@@ -6461,7 +6461,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
6461
6461
  * if (result) {
6462
6462
  * // This is the signed-in user
6463
6463
  * const user = result.user;
6464
- * // This gives you a Github Access Token.
6464
+ * // This gives you a GitHub Access Token.
6465
6465
  * const credential = GithubAuthProvider.credentialFromResult(result);
6466
6466
  * const token = credential.accessToken;
6467
6467
  * }
@@ -6476,7 +6476,7 @@ var GoogleAuthProvider = /** @class */ (function (_super) {
6476
6476
  *
6477
6477
  * // The signed-in user info.
6478
6478
  * const user = result.user;
6479
- * // This gives you a Github Access Token.
6479
+ * // This gives you a GitHub Access Token.
6480
6480
  * const credential = GithubAuthProvider.credentialFromResult(result);
6481
6481
  * const token = credential.accessToken;
6482
6482
  * ```
@@ -6488,9 +6488,9 @@ var GithubAuthProvider = /** @class */ (function (_super) {
6488
6488
  return _super.call(this, "github.com" /* ProviderId.GITHUB */) || this;
6489
6489
  }
6490
6490
  /**
6491
- * Creates a credential for Github.
6491
+ * Creates a credential for GitHub.
6492
6492
  *
6493
- * @param accessToken - Github access token.
6493
+ * @param accessToken - GitHub access token.
6494
6494
  */
6495
6495
  GithubAuthProvider.credential = function (accessToken) {
6496
6496
  return OAuthCredential._fromParams({
@@ -9056,7 +9056,7 @@ function multiFactor(user) {
9056
9056
  }
9057
9057
 
9058
9058
  var name = "@firebase/auth";
9059
- var version = "1.7.5";
9059
+ var version = "1.7.6-20240730204232";
9060
9060
 
9061
9061
  /**
9062
9062
  * @license
@@ -10663,7 +10663,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
10663
10663
  if (typeof closeBrowserTab === 'function') {
10664
10664
  closeBrowserTab();
10665
10665
  }
10666
- // Close inappbrowser emebedded webview in iOS7 and 8 case if still
10666
+ // Close inappbrowser embedded webview in iOS7 and 8 case if still
10667
10667
  // open.
10668
10668
  if (typeof (iabRef === null || iabRef === void 0 ? void 0 : iabRef.close) === 'function') {
10669
10669
  iabRef.close();
@@ -10675,7 +10675,7 @@ function _waitForAppResume(auth, eventListener, iabRef) {
10675
10675
  return;
10676
10676
  }
10677
10677
  onCloseTimer = window.setTimeout(function () {
10678
- // Wait two seeconds after resume then reject.
10678
+ // Wait two seconds after resume then reject.
10679
10679
  reject(_createError(auth, "redirect-cancelled-by-user" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */));
10680
10680
  }, REDIRECT_TIMEOUT_MS);
10681
10681
  }
@@ -10922,7 +10922,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
10922
10922
  var _this = _super !== null && _super.apply(this, arguments) || this;
10923
10923
  _this.passiveListeners = new Set();
10924
10924
  _this.initPromise = new Promise(function (resolve) {
10925
- _this.resolveInialized = resolve;
10925
+ _this.resolveInitialized = resolve;
10926
10926
  });
10927
10927
  return _this;
10928
10928
  }
@@ -10940,7 +10940,7 @@ var CordovaAuthEventManager = /** @class */ (function (_super) {
10940
10940
  };
10941
10941
  /** Override the onEvent method */
10942
10942
  CordovaAuthEventManager.prototype.onEvent = function (event) {
10943
- this.resolveInialized();
10943
+ this.resolveInitialized();
10944
10944
  this.passiveListeners.forEach(function (cb) { return cb(event); });
10945
10945
  return _super.prototype.onEvent.call(this, event);
10946
10946
  };
@@ -11275,4 +11275,4 @@ function generateNoEvent() {
11275
11275
  }
11276
11276
 
11277
11277
  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, _setExternalJSProvider 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, _link$1 as aA, debugAssert as aB, _generateEventId as aC, AbstractPopupRedirectOperation as aD, _assertInstanceOf as aE, _withDefaultResolver as aF, FederatedAuthProvider as aG, _fail as aH, _getProjectConfig as aI, _getCurrentUrl as aJ, _gapiScriptUrl as aK, _emulatorUrl as aL, _isChromeIOS as aM, _isFirefox as aN, _isIOSStandalone as aO, _getRedirectUrl as aP, _setWindowLocation as aQ, _isMobileBrowser as aR, _isSafari as aS, _isIOS as aT, _getRedirectResult as aU, _overrideRedirectResult as aV, AuthEventManager as aW, debugFail as aX, finalizeEnrollPhoneMfa as aY, finalizeEnrollTotpMfa as aZ, startEnrollTotpMfa 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, _assert as ak, Delay as al, _window as am, isV2 as an, _createError as ao, _recaptchaV2ScriptUrl as ap, _loadJS as aq, _generateCallbackName as ar, getRecaptchaParams as as, _isHttpOrHttps as at, _isWorker as au, _castAuth as av, _serverAppCurrentUserOperationNotSupportedError as aw, _assertLinkedStatus as ax, sendPhoneVerificationCode as ay, startEnrollPhoneMfa as az, _linkWithRedirect as b, _persistenceKeyName as b0, UserImpl as b1, _getInstance as b2, AuthImpl as b3, _getClientVersion as b4, FetchProvider as b5, SAMLAuthCredential as b6, signInWithRedirect as b7, linkWithRedirect as b8, reauthenticateWithRedirect as b9, 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 };
11278
- //# sourceMappingURL=popup_redirect-31aa6bae.js.map
11278
+ //# sourceMappingURL=popup_redirect-dd5757b3.js.map