@firebase/auth 1.7.6 → 1.7.7-20240813205648

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 (43) hide show
  1. package/dist/browser-cjs/{index-d289c196.js → index-6466c523.js} +2 -39
  2. package/dist/browser-cjs/{index-d289c196.js.map → index-6466c523.js.map} +1 -1
  3. package/dist/browser-cjs/index.js +1 -1
  4. package/dist/browser-cjs/internal.js +1 -1
  5. package/dist/cordova/index.js +2 -2
  6. package/dist/cordova/internal.js +2 -2
  7. package/dist/cordova/{popup_redirect-a8611c3f.js → popup_redirect-ac25dc52.js} +2 -39
  8. package/dist/cordova/{popup_redirect-a8611c3f.js.map → popup_redirect-ac25dc52.js.map} +1 -1
  9. package/dist/esm2017/{index-21205181.js → index-7faacd3c.js} +2 -39
  10. package/dist/esm2017/{index-21205181.js.map → index-7faacd3c.js.map} +1 -1
  11. package/dist/esm2017/index.js +1 -1
  12. package/dist/esm2017/internal.js +2 -2
  13. package/dist/esm5/{index-5260c5e2.js → index-cb49f69e.js} +2 -39
  14. package/dist/esm5/{index-5260c5e2.js.map → index-cb49f69e.js.map} +1 -1
  15. package/dist/esm5/index.js +1 -1
  16. package/dist/esm5/internal.js +2 -2
  17. package/dist/index.webworker.esm5.js +1 -1
  18. package/dist/node/index.js +1 -1
  19. package/dist/node/internal.js +1 -28
  20. package/dist/node/internal.js.map +1 -1
  21. package/dist/node/{totp-46adb912.js → totp-a0970420.js} +2 -14
  22. package/dist/node/{totp-46adb912.js.map → totp-a0970420.js.map} +1 -1
  23. package/dist/node-esm/index.js +1 -1
  24. package/dist/node-esm/internal.js +3 -30
  25. package/dist/node-esm/internal.js.map +1 -1
  26. package/dist/node-esm/{totp-67638892.js → totp-fbdd0770.js} +3 -13
  27. package/dist/node-esm/{totp-67638892.js.map → totp-fbdd0770.js.map} +1 -1
  28. package/dist/rn/{index-a138cc45.js → index-5d830846.js} +2 -13
  29. package/dist/rn/{index-a138cc45.js.map → index-5d830846.js.map} +1 -1
  30. package/dist/rn/index.js +1 -1
  31. package/dist/rn/internal.js +1 -28
  32. package/dist/rn/internal.js.map +1 -1
  33. package/dist/web-extension-cjs/index.js +1 -1
  34. package/dist/web-extension-cjs/internal.js +1 -28
  35. package/dist/web-extension-cjs/internal.js.map +1 -1
  36. package/dist/web-extension-cjs/{register-cf5512c4.js → register-368e0cdb.js} +2 -13
  37. package/dist/web-extension-cjs/{register-cf5512c4.js.map → register-368e0cdb.js.map} +1 -1
  38. package/dist/web-extension-esm2017/index.js +2 -2
  39. package/dist/web-extension-esm2017/internal.js +3 -30
  40. package/dist/web-extension-esm2017/internal.js.map +1 -1
  41. package/dist/web-extension-esm2017/{register-5aef0e11.js → register-532067da.js} +3 -13
  42. package/dist/web-extension-esm2017/{register-5aef0e11.js.map → register-532067da.js.map} +1 -1
  43. package/package.json +1 -1
@@ -2225,16 +2225,6 @@ function _isMobileBrowser(ua = util.getUA()) {
2225
2225
  _isBlackBerry(ua) ||
2226
2226
  /windows phone/i.test(ua) ||
2227
2227
  _isIEMobile(ua));
2228
- }
2229
- function _isIframe() {
2230
- try {
2231
- // Check that the current window is not the top window.
2232
- // If so, return true.
2233
- return !!(window && window !== window.top);
2234
- }
2235
- catch (e) {
2236
- return false;
2237
- }
2238
2228
  }
2239
2229
 
2240
2230
  /**
@@ -7035,10 +7025,6 @@ class BrowserPersistenceClass {
7035
7025
  * See the License for the specific language governing permissions and
7036
7026
  * limitations under the License.
7037
7027
  */
7038
- function _iframeCannotSyncWebStorage() {
7039
- const ua = util.getUA();
7040
- return _isSafari(ua) || _isIOS(ua);
7041
- }
7042
7028
  // The polling period in case events are not supported
7043
7029
  const _POLLING_INTERVAL_MS$1 = 1000;
7044
7030
  // The IE 10 localStorage cross tab synchronization delay in milliseconds
@@ -7052,8 +7038,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
7052
7038
  // setTimeout return value is platform specific
7053
7039
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7054
7040
  this.pollTimer = null;
7055
- // Safari or iOS browser and embedded in an iframe.
7056
- this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
7057
7041
  // Whether to use polling instead of depending on window events
7058
7042
  this.fallbackToPolling = _isMobileBrowser();
7059
7043
  this._shouldAllowMigration = true;
@@ -7092,27 +7076,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
7092
7076
  // Remove polling listener to prevent possible event duplication.
7093
7077
  this.stopPolling();
7094
7078
  }
7095
- // Safari embedded iframe. Storage event will trigger with the delta
7096
- // changes but no changes will be applied to the iframe localStorage.
7097
- if (this.safariLocalStorageNotSynced) {
7098
- // Get current iframe page value.
7099
- const storedValue = this.storage.getItem(key);
7100
- // Value not synchronized, synchronize manually.
7101
- if (event.newValue !== storedValue) {
7102
- if (event.newValue !== null) {
7103
- // Value changed from current value.
7104
- this.storage.setItem(key, event.newValue);
7105
- }
7106
- else {
7107
- // Current value deleted.
7108
- this.storage.removeItem(key);
7109
- }
7110
- }
7111
- else if (this.localCache[key] === event.newValue && !poll) {
7112
- // Already detected and processed, do not trigger listeners again.
7113
- return;
7114
- }
7115
- }
7116
7079
  const triggerListeners = () => {
7117
7080
  // Keep local map up to date in case storage event is triggered before
7118
7081
  // poll.
@@ -10470,7 +10433,7 @@ function _isEmptyString(input) {
10470
10433
  }
10471
10434
 
10472
10435
  var name = "@firebase/auth";
10473
- var version = "1.7.6";
10436
+ var version = "1.7.7-20240813205648";
10474
10437
 
10475
10438
  /**
10476
10439
  * @license
@@ -10831,4 +10794,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
10831
10794
  exports.validatePassword = validatePassword;
10832
10795
  exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
10833
10796
  exports.verifyPasswordResetCode = verifyPasswordResetCode;
10834
- //# sourceMappingURL=index-d289c196.js.map
10797
+ //# sourceMappingURL=index-6466c523.js.map