@firebase/auth 1.13.3-eap-crashlytics.659b578fb → 1.13.4-20260728185501

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 (37) hide show
  1. package/dist/browser-cjs/{index-DLAcLH17.js → index-TiyvRZm6.js} +97 -26
  2. package/dist/{esm/index-DIozsb1n.js.map → browser-cjs/index-TiyvRZm6.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-DU-rQFxl.js → popup_redirect-Be0Melsy.js} +125 -54
  8. package/dist/cordova/popup_redirect-Be0Melsy.js.map +1 -0
  9. package/dist/esm/{index-DIozsb1n.js → index-DqtyKhzu.js} +97 -26
  10. package/dist/{browser-cjs/index-DLAcLH17.js.map → esm/index-DqtyKhzu.js.map} +1 -1
  11. package/dist/esm/index.js +1 -1
  12. package/dist/esm/internal.js +2 -2
  13. package/dist/index.webworker.js +96 -25
  14. package/dist/index.webworker.js.map +1 -1
  15. package/dist/node/index.js +1 -1
  16. package/dist/node/internal.js +1 -1
  17. package/dist/node/{totp-BwsckFdy.js → totp-D8cjDKiH.js} +2 -2
  18. package/dist/node/{totp-BwsckFdy.js.map → totp-D8cjDKiH.js.map} +1 -1
  19. package/dist/node-esm/index.js +1 -1
  20. package/dist/node-esm/internal.js +2 -2
  21. package/dist/node-esm/{totp-BqsE7qvo.js → totp-BkwAJFrn.js} +2 -2
  22. package/dist/node-esm/{totp-BqsE7qvo.js.map → totp-BkwAJFrn.js.map} +1 -1
  23. package/dist/rn/{index-96z01bxX.js → index-BzcHGbdh.js} +2 -2
  24. package/dist/rn/{index-96z01bxX.js.map → index-BzcHGbdh.js.map} +1 -1
  25. package/dist/rn/index.js +1 -1
  26. package/dist/rn/internal.js +96 -25
  27. package/dist/rn/internal.js.map +1 -1
  28. package/dist/web-extension-cjs/index.js +1 -1
  29. package/dist/web-extension-cjs/internal.js +1 -1
  30. package/dist/web-extension-cjs/{register-B1PXHVFP.js → register-Bk5zU3vt.js} +97 -26
  31. package/dist/{web-extension-esm/register-B7zfGmPU.js.map → web-extension-cjs/register-Bk5zU3vt.js.map} +1 -1
  32. package/dist/web-extension-esm/index.js +2 -2
  33. package/dist/web-extension-esm/internal.js +2 -2
  34. package/dist/web-extension-esm/{register-B7zfGmPU.js → register-CGKCII54.js} +97 -26
  35. package/dist/{web-extension-cjs/register-B1PXHVFP.js.map → web-extension-esm/register-CGKCII54.js.map} +1 -1
  36. package/package.json +6 -6
  37. package/dist/cordova/popup_redirect-DU-rQFxl.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-DLAcLH17.js');
5
+ var index = require('./index-TiyvRZm6.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-DLAcLH17.js');
5
+ var index = require('./index-TiyvRZm6.js');
6
6
  var util = require('@firebase/util');
7
7
  require('@firebase/app');
8
8
  require('@firebase/logger');
@@ -1,6 +1,6 @@
1
1
  import { _getProvider, getApp } from '@firebase/app';
2
- import { _ as _linkWithRedirect, a as _reauthenticateWithRedirect, b as _signInWithRedirect, r as registerAuth, i as initializeAuth, c as cordovaPopupRedirectResolver, d as indexedDBLocalPersistence } from './popup_redirect-DU-rQFxl.js';
3
- export { A as ActionCodeOperation, e as ActionCodeURL, f as AuthCredential, g as AuthErrorCodes, E as EmailAuthCredential, h as EmailAuthProvider, F as FacebookAuthProvider, j as FactorId, G as GithubAuthProvider, k as GoogleAuthProvider, O as OAuthCredential, l as OAuthProvider, m as OperationType, P as PhoneAuthCredential, n as ProviderId, S as SAMLAuthProvider, o as SignInMethod, T as TwitterAuthProvider, p as applyActionCode, q as beforeAuthStateChanged, s as browserLocalPersistence, t as browserSessionPersistence, u as checkActionCode, v as confirmPasswordReset, w as connectAuthEmulator, x as createUserWithEmailAndPassword, y as debugErrorMap, z as deleteUser, B as fetchSignInMethodsForEmail, C as getAdditionalUserInfo, D as getIdToken, H as getIdTokenResult, I as getMultiFactorResolver, J as getRedirectResult, K as inMemoryPersistence, L as initializeRecaptchaConfig, M as isSignInWithEmailLink, N as linkWithCredential, Q as multiFactor, R as onAuthStateChanged, U as onIdTokenChanged, V as parseActionCodeURL, W as prodErrorMap, X as reauthenticateWithCredential, Y as reload, Z as revokeAccessToken, $ as sendEmailVerification, a0 as sendPasswordResetEmail, a1 as sendSignInLinkToEmail, a2 as setPersistence, a3 as signInAnonymously, a4 as signInWithCredential, a5 as signInWithCustomToken, a6 as signInWithEmailAndPassword, a7 as signInWithEmailLink, a8 as signOut, a9 as unlink, aa as updateCurrentUser, ab as updateEmail, ac as updatePassword, ad as updateProfile, ae as useDeviceLanguage, af as validatePassword, ag as verifyBeforeUpdateEmail, ah as verifyPasswordResetCode } from './popup_redirect-DU-rQFxl.js';
2
+ import { _ as _linkWithRedirect, a as _reauthenticateWithRedirect, b as _signInWithRedirect, r as registerAuth, i as initializeAuth, c as cordovaPopupRedirectResolver, d as indexedDBLocalPersistence } from './popup_redirect-Be0Melsy.js';
3
+ export { A as ActionCodeOperation, e as ActionCodeURL, f as AuthCredential, g as AuthErrorCodes, E as EmailAuthCredential, h as EmailAuthProvider, F as FacebookAuthProvider, j as FactorId, G as GithubAuthProvider, k as GoogleAuthProvider, O as OAuthCredential, l as OAuthProvider, m as OperationType, P as PhoneAuthCredential, n as ProviderId, S as SAMLAuthProvider, o as SignInMethod, T as TwitterAuthProvider, p as applyActionCode, q as beforeAuthStateChanged, s as browserLocalPersistence, t as browserSessionPersistence, u as checkActionCode, v as confirmPasswordReset, w as connectAuthEmulator, x as createUserWithEmailAndPassword, y as debugErrorMap, z as deleteUser, B as fetchSignInMethodsForEmail, C as getAdditionalUserInfo, D as getIdToken, H as getIdTokenResult, I as getMultiFactorResolver, J as getRedirectResult, K as inMemoryPersistence, L as initializeRecaptchaConfig, M as isSignInWithEmailLink, N as linkWithCredential, Q as multiFactor, R as onAuthStateChanged, U as onIdTokenChanged, V as parseActionCodeURL, W as prodErrorMap, X as reauthenticateWithCredential, Y as reload, Z as revokeAccessToken, $ as sendEmailVerification, a0 as sendPasswordResetEmail, a1 as sendSignInLinkToEmail, a2 as setPersistence, a3 as signInAnonymously, a4 as signInWithCredential, a5 as signInWithCustomToken, a6 as signInWithEmailAndPassword, a7 as signInWithEmailLink, a8 as signOut, a9 as unlink, aa as updateCurrentUser, ab as updateEmail, ac as updatePassword, ad as updateProfile, ae as useDeviceLanguage, af as validatePassword, ag as verifyBeforeUpdateEmail, ah as verifyPasswordResetCode } from './popup_redirect-Be0Melsy.js';
4
4
  import '@firebase/util';
5
5
  import '@firebase/component';
6
6
  import '@firebase/logger';
@@ -1,5 +1,5 @@
1
- import { ai as _performApiRequest, aj as _addTidIfNecessary, ak as Delay, al as MockReCaptcha, am as _window, an as _assert, ao as isV2, ap as _createError, aq as _recaptchaV2ScriptUrl, ar as _loadJS, as as _generateCallbackName, at as _castAuth, au as _isHttpOrHttps, av as _isWorker, aw as getRecaptchaParams, ax as _assertLinkedStatus, N as linkWithCredential, ay as _serverAppCurrentUserOperationNotSupportedError, X as reauthenticateWithCredential, a4 as signInWithCredential, az as _link, aA as _initializeRecaptchaConfig, aB as FAKE_TOKEN, aC as startEnrollPhoneMfa, aD as handleRecaptchaFlow, aE as sendPhoneVerificationCode, P 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, t as browserSessionPersistence, aT as _getRedirectResult, aU as _overrideRedirectResult, aV as _getRedirectUrl, aW as _setWindowLocation, aX as AuthEventManager, aY as _isMobileBrowser, aZ as _isSafari, a_ as _isIOS, a$ as debugFail, b0 as finalizeEnrollPhoneMfa, b1 as startEnrollTotpMfa, b2 as finalizeEnrollTotpMfa, r as registerAuth, i as initializeAuth, d as indexedDBLocalPersistence, s as browserLocalPersistence, q as beforeAuthStateChanged, U as onIdTokenChanged, w as connectAuthEmulator, b3 as _setExternalJSProvider } from './popup_redirect-DU-rQFxl.js';
2
- export { A as ActionCodeOperation, e as ActionCodeURL, f as AuthCredential, g as AuthErrorCodes, b4 as AuthImpl, E as EmailAuthCredential, h as EmailAuthProvider, F as FacebookAuthProvider, j as FactorId, b5 as FetchProvider, G as GithubAuthProvider, k as GoogleAuthProvider, O as OAuthCredential, l as OAuthProvider, m as OperationType, n as ProviderId, b6 as SAMLAuthCredential, S as SAMLAuthProvider, o as SignInMethod, T as TwitterAuthProvider, b7 as UserImpl, b8 as _getClientVersion, b9 as _getInstance, ba as _persistenceKeyName, p as applyActionCode, u as checkActionCode, v as confirmPasswordReset, c as cordovaPopupRedirectResolver, x as createUserWithEmailAndPassword, y as debugErrorMap, z as deleteUser, B as fetchSignInMethodsForEmail, C as getAdditionalUserInfo, D as getIdToken, H as getIdTokenResult, I as getMultiFactorResolver, J as getRedirectResult, K as inMemoryPersistence, L as initializeRecaptchaConfig, M as isSignInWithEmailLink, bb as linkWithRedirect, Q as multiFactor, R as onAuthStateChanged, V as parseActionCodeURL, W as prodErrorMap, bc as reauthenticateWithRedirect, Y as reload, Z as revokeAccessToken, $ as sendEmailVerification, a0 as sendPasswordResetEmail, a1 as sendSignInLinkToEmail, a2 as setPersistence, a3 as signInAnonymously, a5 as signInWithCustomToken, a6 as signInWithEmailAndPassword, a7 as signInWithEmailLink, bd as signInWithRedirect, a8 as signOut, a9 as unlink, aa as updateCurrentUser, ab as updateEmail, ac as updatePassword, ad as updateProfile, ae as useDeviceLanguage, af as validatePassword, ag as verifyBeforeUpdateEmail, ah as verifyPasswordResetCode } from './popup_redirect-DU-rQFxl.js';
1
+ import { ai as _performApiRequest, aj as _addTidIfNecessary, ak as Delay, al as MockReCaptcha, am as _window, an as _assert, ao as isV2, ap as _createError, aq as _recaptchaV2ScriptUrl, ar as _loadJS, as as _generateCallbackName, at as _castAuth, au as _isHttpOrHttps, av as _isWorker, aw as getRecaptchaParams, ax as _assertLinkedStatus, N as linkWithCredential, ay as _serverAppCurrentUserOperationNotSupportedError, X as reauthenticateWithCredential, a4 as signInWithCredential, az as _link, aA as _initializeRecaptchaConfig, aB as FAKE_TOKEN, aC as startEnrollPhoneMfa, aD as handleRecaptchaFlow, aE as sendPhoneVerificationCode, P 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, t as browserSessionPersistence, aT as _getRedirectResult, aU as _overrideRedirectResult, aV as _getRedirectUrl, aW as _setWindowLocation, aX as AuthEventManager, aY as _isMobileBrowser, aZ as _isSafari, a_ as _isIOS, a$ as debugFail, b0 as finalizeEnrollPhoneMfa, b1 as startEnrollTotpMfa, b2 as finalizeEnrollTotpMfa, r as registerAuth, i as initializeAuth, d as indexedDBLocalPersistence, s as browserLocalPersistence, q as beforeAuthStateChanged, U as onIdTokenChanged, w as connectAuthEmulator, b3 as _setExternalJSProvider } from './popup_redirect-Be0Melsy.js';
2
+ export { A as ActionCodeOperation, e as ActionCodeURL, f as AuthCredential, g as AuthErrorCodes, b4 as AuthImpl, E as EmailAuthCredential, h as EmailAuthProvider, F as FacebookAuthProvider, j as FactorId, b5 as FetchProvider, G as GithubAuthProvider, k as GoogleAuthProvider, O as OAuthCredential, l as OAuthProvider, m as OperationType, n as ProviderId, b6 as SAMLAuthCredential, S as SAMLAuthProvider, o as SignInMethod, T as TwitterAuthProvider, b7 as UserImpl, b8 as _getClientVersion, b9 as _getInstance, ba as _persistenceKeyName, p as applyActionCode, u as checkActionCode, v as confirmPasswordReset, c as cordovaPopupRedirectResolver, x as createUserWithEmailAndPassword, y as debugErrorMap, z as deleteUser, B as fetchSignInMethodsForEmail, C as getAdditionalUserInfo, D as getIdToken, H as getIdTokenResult, I as getMultiFactorResolver, J as getRedirectResult, K as inMemoryPersistence, L as initializeRecaptchaConfig, M as isSignInWithEmailLink, bb as linkWithRedirect, Q as multiFactor, R as onAuthStateChanged, V as parseActionCodeURL, W as prodErrorMap, bc as reauthenticateWithRedirect, Y as reload, Z as revokeAccessToken, $ as sendEmailVerification, a0 as sendPasswordResetEmail, a1 as sendSignInLinkToEmail, a2 as setPersistence, a3 as signInAnonymously, a5 as signInWithCustomToken, a6 as signInWithEmailAndPassword, a7 as signInWithEmailLink, bd as signInWithRedirect, a8 as signOut, a9 as unlink, aa as updateCurrentUser, ab as updateEmail, ac as updatePassword, ad as updateProfile, ae as useDeviceLanguage, af as validatePassword, ag as verifyBeforeUpdateEmail, ah as verifyPasswordResetCode } from './popup_redirect-Be0Melsy.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 '@firebase/component';
@@ -359,6 +359,34 @@ function _getWorkerGlobalScope() {
359
359
  return _isWorker() ? self : null;
360
360
  }
361
361
 
362
+ /**
363
+ * @license
364
+ * Copyright 2020 Google LLC
365
+ *
366
+ * Licensed under the Apache License, Version 2.0 (the "License");
367
+ * you may not use this file except in compliance with the License.
368
+ * You may obtain a copy of the License at
369
+ *
370
+ * http://www.apache.org/licenses/LICENSE-2.0
371
+ *
372
+ * Unless required by applicable law or agreed to in writing, software
373
+ * distributed under the License is distributed on an "AS IS" BASIS,
374
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
375
+ * See the License for the specific language governing permissions and
376
+ * limitations under the License.
377
+ */
378
+ const logClient = new Logger('@firebase/auth');
379
+ function _logWarn(msg, ...args) {
380
+ if (logClient.logLevel <= LogLevel.WARN) {
381
+ logClient.warn(`Auth (${SDK_VERSION}): ${msg}`, ...args);
382
+ }
383
+ }
384
+ function _logError(msg, ...args) {
385
+ if (logClient.logLevel <= LogLevel.ERROR) {
386
+ logClient.error(`Auth (${SDK_VERSION}): ${msg}`, ...args);
387
+ }
388
+ }
389
+
362
390
  /**
363
391
  * @license
364
392
  * Copyright 2019 Google LLC
@@ -461,6 +489,28 @@ function _deleteObject(db, key) {
461
489
  const _POLLING_INTERVAL_MS$1 = 800;
462
490
  const _TRANSACTION_RETRY_COUNT = 3;
463
491
  class IndexedDBLocalPersistence {
492
+ registerLifecycleListeners() {
493
+ if (typeof window !== 'undefined' &&
494
+ typeof window.addEventListener === 'function') {
495
+ window.addEventListener('pagehide', this.onPageHide);
496
+ window.addEventListener('pageshow', this.onPageShow);
497
+ }
498
+ if (typeof document !== 'undefined' &&
499
+ typeof document.addEventListener === 'function') {
500
+ document.addEventListener('visibilitychange', this.onVisibilityChange);
501
+ }
502
+ }
503
+ unregisterLifecycleListeners() {
504
+ if (typeof window !== 'undefined' &&
505
+ typeof window.removeEventListener === 'function') {
506
+ window.removeEventListener('pagehide', this.onPageHide);
507
+ window.removeEventListener('pageshow', this.onPageShow);
508
+ }
509
+ if (typeof document !== 'undefined' &&
510
+ typeof document.removeEventListener === 'function') {
511
+ document.removeEventListener('visibilitychange', this.onVisibilityChange);
512
+ }
513
+ }
464
514
  constructor() {
465
515
  this.type = "LOCAL" /* PersistenceType.LOCAL */;
466
516
  this.dbPromise = null;
@@ -470,16 +520,46 @@ class IndexedDBLocalPersistence {
470
520
  // setTimeout return value is platform specific
471
521
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
472
522
  this.pollTimer = null;
523
+ this.isHiding = false;
473
524
  this.pendingWrites = 0;
474
525
  this.receiver = null;
475
526
  this.sender = null;
476
527
  this.serviceWorkerReceiverAvailable = false;
477
528
  this.activeServiceWorker = null;
529
+ this.onPageHide = () => {
530
+ this.isHiding = true;
531
+ this.stopPolling();
532
+ if (this.dbPromise) {
533
+ this.dbPromise.then(db => db.close()).catch(() => { });
534
+ this.dbPromise = null;
535
+ }
536
+ };
537
+ this.onPageShow = () => {
538
+ if (this.isHiding) {
539
+ this.isHiding = false;
540
+ if (Object.keys(this.listeners).length > 0) {
541
+ this.startPolling();
542
+ }
543
+ }
544
+ };
545
+ this.onVisibilityChange = () => {
546
+ if (typeof document !== 'undefined') {
547
+ if (document.visibilityState === 'hidden') {
548
+ this.onPageHide();
549
+ }
550
+ else if (document.visibilityState === 'visible') {
551
+ this.onPageShow();
552
+ }
553
+ }
554
+ };
478
555
  // Fire & forget the service worker registration as it may never resolve
479
556
  this._workerInitializationPromise =
480
557
  this.initializeServiceWorkerMessaging().then(() => { }, () => { });
481
558
  }
482
559
  async _openDb() {
560
+ if (this.isHiding) {
561
+ throw new Error('Database is closing/hidden');
562
+ }
483
563
  if (this.dbPromise) {
484
564
  return this.dbPromise;
485
565
  }
@@ -497,6 +577,9 @@ class IndexedDBLocalPersistence {
497
577
  return await op(db);
498
578
  }
499
579
  catch (e) {
580
+ if (this.isHiding) {
581
+ throw e;
582
+ }
500
583
  if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {
501
584
  throw e;
502
585
  }
@@ -626,37 +709,51 @@ class IndexedDBLocalPersistence {
626
709
  });
627
710
  }
628
711
  async _poll() {
629
- // TODO: check if we need to fallback if getAll is not supported
630
- const result = await this._withRetries((db) => {
631
- const getAllRequest = getObjectStore(db, false).getAll();
632
- return new DBPromise(getAllRequest).toPromise();
633
- });
634
- if (!result) {
635
- return [];
636
- }
637
- // If we have pending writes in progress abort, we'll get picked up on the next poll
638
- if (this.pendingWrites !== 0) {
712
+ if (this.isHiding) {
639
713
  return [];
640
714
  }
641
- const keys = [];
642
- const keysInResult = new Set();
643
- if (result.length !== 0) {
644
- for (const { fbase_key: key, value } of result) {
645
- keysInResult.add(key);
646
- if (JSON.stringify(this.localCache[key]) !== JSON.stringify(value)) {
647
- this.notifyListeners(key, value);
648
- keys.push(key);
715
+ try {
716
+ // TODO: check if we need to fallback if getAll is not supported
717
+ const result = await this._withRetries((db) => {
718
+ const getAllRequest = getObjectStore(db, false).getAll();
719
+ return new DBPromise(getAllRequest).toPromise();
720
+ });
721
+ if (this.isHiding) {
722
+ return [];
723
+ }
724
+ if (!result) {
725
+ return [];
726
+ }
727
+ // If we have pending writes in progress abort, we'll get picked up on the next poll
728
+ if (this.pendingWrites !== 0) {
729
+ return [];
730
+ }
731
+ const keys = [];
732
+ const keysInResult = new Set();
733
+ if (result.length !== 0) {
734
+ for (const { fbase_key: key, value } of result) {
735
+ keysInResult.add(key);
736
+ if (JSON.stringify(this.localCache[key]) !== JSON.stringify(value)) {
737
+ this.notifyListeners(key, value);
738
+ keys.push(key);
739
+ }
740
+ }
741
+ }
742
+ for (const localKey of Object.keys(this.localCache)) {
743
+ if (this.localCache[localKey] && !keysInResult.has(localKey)) {
744
+ // Deleted
745
+ this.notifyListeners(localKey, null);
746
+ keys.push(localKey);
649
747
  }
650
748
  }
749
+ return keys;
651
750
  }
652
- for (const localKey of Object.keys(this.localCache)) {
653
- if (this.localCache[localKey] && !keysInResult.has(localKey)) {
654
- // Deleted
655
- this.notifyListeners(localKey, null);
656
- keys.push(localKey);
751
+ catch (e) {
752
+ if (!this.isHiding) {
753
+ _logWarn(`Firebase Auth cross-tab polling failed with error: ${e}`);
657
754
  }
755
+ return [];
658
756
  }
659
- return keys;
660
757
  }
661
758
  notifyListeners(key, newValue) {
662
759
  this.localCache[key] = newValue;
@@ -680,6 +777,7 @@ class IndexedDBLocalPersistence {
680
777
  _addListener(key, listener) {
681
778
  if (Object.keys(this.listeners).length === 0) {
682
779
  this.startPolling();
780
+ this.registerLifecycleListeners();
683
781
  }
684
782
  if (!this.listeners[key]) {
685
783
  this.listeners[key] = new Set();
@@ -697,6 +795,7 @@ class IndexedDBLocalPersistence {
697
795
  }
698
796
  if (Object.keys(this.listeners).length === 0) {
699
797
  this.stopPolling();
798
+ this.unregisterLifecycleListeners();
700
799
  }
701
800
  }
702
801
  }
@@ -1033,34 +1132,6 @@ const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {
1033
1132
  INVALID_HOSTING_LINK_DOMAIN: 'auth/invalid-hosting-link-domain'
1034
1133
  };
1035
1134
 
1036
- /**
1037
- * @license
1038
- * Copyright 2020 Google LLC
1039
- *
1040
- * Licensed under the Apache License, Version 2.0 (the "License");
1041
- * you may not use this file except in compliance with the License.
1042
- * You may obtain a copy of the License at
1043
- *
1044
- * http://www.apache.org/licenses/LICENSE-2.0
1045
- *
1046
- * Unless required by applicable law or agreed to in writing, software
1047
- * distributed under the License is distributed on an "AS IS" BASIS,
1048
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1049
- * See the License for the specific language governing permissions and
1050
- * limitations under the License.
1051
- */
1052
- const logClient = new Logger('@firebase/auth');
1053
- function _logWarn(msg, ...args) {
1054
- if (logClient.logLevel <= LogLevel.WARN) {
1055
- logClient.warn(`Auth (${SDK_VERSION}): ${msg}`, ...args);
1056
- }
1057
- }
1058
- function _logError(msg, ...args) {
1059
- if (logClient.logLevel <= LogLevel.ERROR) {
1060
- logClient.error(`Auth (${SDK_VERSION}): ${msg}`, ...args);
1061
- }
1062
- }
1063
-
1064
1135
  /**
1065
1136
  * @license
1066
1137
  * Copyright 2020 Google LLC
@@ -7979,7 +8050,7 @@ function multiFactor(user) {
7979
8050
  }
7980
8051
 
7981
8052
  var name = "@firebase/auth";
7982
- var version = "1.13.3-eap-crashlytics.659b578fb";
8053
+ var version = "1.13.4-20260728185501";
7983
8054
 
7984
8055
  /**
7985
8056
  * @license
@@ -9793,4 +9864,4 @@ function generateNoEvent() {
9793
9864
  }
9794
9865
 
9795
9866
  export { sendEmailVerification as $, ActionCodeOperation as A, fetchSignInMethodsForEmail as B, getAdditionalUserInfo as C, getIdToken as D, EmailAuthCredential as E, FacebookAuthProvider as F, GithubAuthProvider as G, getIdTokenResult as H, getMultiFactorResolver as I, getRedirectResult as J, inMemoryPersistence as K, initializeRecaptchaConfig as L, isSignInWithEmailLink as M, linkWithCredential as N, OAuthCredential as O, PhoneAuthCredential as P, multiFactor as Q, onAuthStateChanged as R, SAMLAuthProvider as S, TwitterAuthProvider as T, onIdTokenChanged as U, parseActionCodeURL as V, prodErrorMap as W, reauthenticateWithCredential as X, reload as Y, revokeAccessToken as Z, _linkWithRedirect as _, _reauthenticateWithRedirect as a, debugFail as a$, sendPasswordResetEmail as a0, sendSignInLinkToEmail as a1, setPersistence as a2, signInAnonymously as a3, signInWithCredential as a4, signInWithCustomToken as a5, signInWithEmailAndPassword as a6, signInWithEmailLink as a7, signOut as a8, unlink as a9, _initializeRecaptchaConfig as aA, FAKE_TOKEN as aB, startEnrollPhoneMfa as aC, handleRecaptchaFlow as aD, sendPhoneVerificationCode 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, AuthEventManager as aX, _isMobileBrowser as aY, _isSafari as aZ, _isIOS as a_, updateCurrentUser as aa, updateEmail as ab, updatePassword as ac, updateProfile as ad, useDeviceLanguage as ae, validatePassword as af, verifyBeforeUpdateEmail as ag, verifyPasswordResetCode as ah, _performApiRequest as ai, _addTidIfNecessary as aj, Delay as ak, MockReCaptcha as al, _window as am, _assert as an, isV2 as ao, _createError as ap, _recaptchaV2ScriptUrl as aq, _loadJS as ar, _generateCallbackName as as, _castAuth as at, _isHttpOrHttps as au, _isWorker as av, getRecaptchaParams as aw, _assertLinkedStatus as ax, _serverAppCurrentUserOperationNotSupportedError as ay, _link$1 as az, _signInWithRedirect as b, finalizeEnrollPhoneMfa as b0, startEnrollTotpMfa as b1, finalizeEnrollTotpMfa as b2, _setExternalJSProvider as b3, AuthImpl as b4, FetchProvider as b5, SAMLAuthCredential as b6, UserImpl as b7, _getClientVersion as b8, _getInstance as b9, _persistenceKeyName as ba, linkWithRedirect as bb, reauthenticateWithRedirect as bc, signInWithRedirect as bd, cordovaPopupRedirectResolver as c, indexedDBLocalPersistence as d, ActionCodeURL as e, AuthCredential as f, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as g, EmailAuthProvider as h, initializeAuth as i, FactorId as j, GoogleAuthProvider as k, OAuthProvider as l, OperationType as m, ProviderId as n, SignInMethod as o, applyActionCode as p, beforeAuthStateChanged as q, registerAuth as r, browserLocalPersistence as s, browserSessionPersistence as t, checkActionCode as u, confirmPasswordReset as v, connectAuthEmulator as w, createUserWithEmailAndPassword as x, debugErrorMap as y, deleteUser as z };
9796
- //# sourceMappingURL=popup_redirect-DU-rQFxl.js.map
9867
+ //# sourceMappingURL=popup_redirect-Be0Melsy.js.map