@firebase/auth 1.13.4 → 1.13.5-20260818172054
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.
- package/dist/browser-cjs/{index-D1eM-zGc.js → index-DOhtw64i.js} +12 -30
- package/dist/browser-cjs/index-DOhtw64i.js.map +1 -0
- package/dist/browser-cjs/index.js +1 -1
- package/dist/browser-cjs/internal.js +1 -1
- package/dist/cordova/index.js +2 -2
- package/dist/cordova/internal.js +2 -2
- package/dist/cordova/internal.js.map +1 -1
- package/dist/cordova/{popup_redirect-B-tPyF2Y.js → popup_redirect-C_twztXF.js} +12 -30
- package/dist/cordova/popup_redirect-C_twztXF.js.map +1 -0
- package/dist/esm/{index-DGK4UgBf.js → index-FS_b96H7.js} +12 -30
- package/dist/esm/index-FS_b96H7.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal.js +2 -2
- package/dist/index.webworker.js +11 -29
- package/dist/index.webworker.js.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -1
- package/dist/node/internal.js.map +1 -1
- package/dist/node/{totp-D1uGng8T.js → totp-GWNJ0pub.js} +2 -2
- package/dist/node/totp-GWNJ0pub.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/{totp-C7PFgVcO.js → totp-BGkNVE9K.js} +2 -2
- package/dist/node-esm/totp-BGkNVE9K.js.map +1 -0
- package/dist/rn/{index-bWGFqYVI.js → index-CLZfBBHJ.js} +2 -2
- package/dist/rn/index-CLZfBBHJ.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +11 -29
- package/dist/rn/internal.js.map +1 -1
- package/dist/web-extension-cjs/index.js +1 -1
- package/dist/web-extension-cjs/internal.js +1 -1
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-CFPR54H_.js → register-D9faTXw9.js} +12 -30
- package/dist/web-extension-cjs/register-D9faTXw9.js.map +1 -0
- package/dist/web-extension-esm/index.js +2 -2
- package/dist/web-extension-esm/internal.js +2 -2
- package/dist/web-extension-esm/internal.js.map +1 -1
- package/dist/web-extension-esm/{register-Ct10ccti.js → register-CcvpgwxP.js} +12 -30
- package/dist/web-extension-esm/register-CcvpgwxP.js.map +1 -0
- package/package.json +6 -7
- package/dist/browser-cjs/index-D1eM-zGc.js.map +0 -1
- package/dist/cordova/popup_redirect-B-tPyF2Y.js.map +0 -1
- package/dist/esm/index-DGK4UgBf.js.map +0 -1
- package/dist/node/totp-D1uGng8T.js.map +0 -1
- package/dist/node-esm/totp-C7PFgVcO.js.map +0 -1
- package/dist/rn/index-bWGFqYVI.js.map +0 -1
- package/dist/web-extension-cjs/register-CFPR54H_.js.map +0 -1
- package/dist/web-extension-esm/register-Ct10ccti.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, a as ActionCodeURL, b as AuthCredential, c as AuthErrorCodes, E as EmailAuthCredential, d as EmailAuthProvider, F as FacebookAuthProvider, e as FactorId, G as GithubAuthProvider, f as GoogleAuthProvider, O as OAuthCredential, g as OAuthProvider, h as OperationType, P as PhoneAuthCredential, i as PhoneAuthProvider, j as PhoneMultiFactorGenerator, k as ProviderId, R as RecaptchaVerifier, S as SAMLAuthProvider, l as SignInMethod, T as TotpMultiFactorGenerator, m as TotpSecret, n as TwitterAuthProvider, o as applyActionCode, p as beforeAuthStateChanged, q as browserCookiePersistence, r as browserLocalPersistence, s as browserPopupRedirectResolver, 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 getAuth, H as getIdToken, I as getIdTokenResult, J as getMultiFactorResolver, K as getRedirectResult, L as inMemoryPersistence, M as indexedDBLocalPersistence, N as initializeAuth, Q as initializeRecaptchaConfig, U as isSignInWithEmailLink, V as linkWithCredential, W as linkWithPhoneNumber, X as linkWithPopup, Y as linkWithRedirect, Z as multiFactor, _ as onAuthStateChanged, $ as onIdTokenChanged, a0 as parseActionCodeURL, a1 as prodErrorMap, a2 as reauthenticateWithCredential, a3 as reauthenticateWithPhoneNumber, a4 as reauthenticateWithPopup, a5 as reauthenticateWithRedirect, a6 as reload, a7 as revokeAccessToken, a8 as sendEmailVerification, a9 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, ab as setPersistence, ac as signInAnonymously, ad as signInWithCredential, ae as signInWithCustomToken, af as signInWithEmailAndPassword, ag as signInWithEmailLink, ah as signInWithPhoneNumber, ai as signInWithPopup, aj as signInWithRedirect, ak as signOut, al as unlink, am as updateCurrentUser, an as updateEmail, ao as updatePassword, ap as updatePhoneNumber, aq as updateProfile, ar as useDeviceLanguage, as as validatePassword, at as verifyBeforeUpdateEmail, au as verifyPasswordResetCode } from './index-
|
|
1
|
+
export { A as ActionCodeOperation, a as ActionCodeURL, b as AuthCredential, c as AuthErrorCodes, E as EmailAuthCredential, d as EmailAuthProvider, F as FacebookAuthProvider, e as FactorId, G as GithubAuthProvider, f as GoogleAuthProvider, O as OAuthCredential, g as OAuthProvider, h as OperationType, P as PhoneAuthCredential, i as PhoneAuthProvider, j as PhoneMultiFactorGenerator, k as ProviderId, R as RecaptchaVerifier, S as SAMLAuthProvider, l as SignInMethod, T as TotpMultiFactorGenerator, m as TotpSecret, n as TwitterAuthProvider, o as applyActionCode, p as beforeAuthStateChanged, q as browserCookiePersistence, r as browserLocalPersistence, s as browserPopupRedirectResolver, 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 getAuth, H as getIdToken, I as getIdTokenResult, J as getMultiFactorResolver, K as getRedirectResult, L as inMemoryPersistence, M as indexedDBLocalPersistence, N as initializeAuth, Q as initializeRecaptchaConfig, U as isSignInWithEmailLink, V as linkWithCredential, W as linkWithPhoneNumber, X as linkWithPopup, Y as linkWithRedirect, Z as multiFactor, _ as onAuthStateChanged, $ as onIdTokenChanged, a0 as parseActionCodeURL, a1 as prodErrorMap, a2 as reauthenticateWithCredential, a3 as reauthenticateWithPhoneNumber, a4 as reauthenticateWithPopup, a5 as reauthenticateWithRedirect, a6 as reload, a7 as revokeAccessToken, a8 as sendEmailVerification, a9 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, ab as setPersistence, ac as signInAnonymously, ad as signInWithCredential, ae as signInWithCustomToken, af as signInWithEmailAndPassword, ag as signInWithEmailLink, ah as signInWithPhoneNumber, ai as signInWithPopup, aj as signInWithRedirect, ak as signOut, al as unlink, am as updateCurrentUser, an as updateEmail, ao as updatePassword, ap as updatePhoneNumber, aq as updateProfile, ar as useDeviceLanguage, as as validatePassword, at as verifyBeforeUpdateEmail, au as verifyPasswordResetCode } from './index-FS_b96H7.js';
|
|
2
2
|
import '@firebase/app';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import '@firebase/logger';
|
package/dist/esm/internal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as _assert, aw as debugAssert, ax as _isIOS, ay as _isAndroid, az as _fail, aA as _getRedirectUrl, aB as _isIOS7Or8, aC as _createError, aD as _getProjectConfig, aE as AuthEventManager, aF as _getInstance, r as browserLocalPersistence, aG as _persistenceKeyName, t as browserSessionPersistence, aH as _getRedirectResult, aI as _overrideRedirectResult, aJ as _clearRedirectOutcomes, aK as _castAuth } from './index-
|
|
2
|
-
export { A as ActionCodeOperation, a as ActionCodeURL, b as AuthCredential, c as AuthErrorCodes, aL as AuthImpl, aM as AuthPopup, E as EmailAuthCredential, d as EmailAuthProvider, F as FacebookAuthProvider, e as FactorId, aN as FetchProvider, G as GithubAuthProvider, f as GoogleAuthProvider, O as OAuthCredential, g as OAuthProvider, h as OperationType, P as PhoneAuthCredential, i as PhoneAuthProvider, j as PhoneMultiFactorGenerator, k as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, S as SAMLAuthProvider, l as SignInMethod, T as TotpMultiFactorGenerator, m as TotpSecret, n as TwitterAuthProvider, aP as UserImpl, aQ as _generateEventId, aR as _getClientVersion, o as applyActionCode, p as beforeAuthStateChanged, q as browserCookiePersistence, s as browserPopupRedirectResolver, 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 getAuth, H as getIdToken, I as getIdTokenResult, J as getMultiFactorResolver, K as getRedirectResult, L as inMemoryPersistence, M as indexedDBLocalPersistence, N as initializeAuth, Q as initializeRecaptchaConfig, U as isSignInWithEmailLink, V as linkWithCredential, W as linkWithPhoneNumber, X as linkWithPopup, Y as linkWithRedirect, Z as multiFactor, _ as onAuthStateChanged, $ as onIdTokenChanged, a0 as parseActionCodeURL, a1 as prodErrorMap, a2 as reauthenticateWithCredential, a3 as reauthenticateWithPhoneNumber, a4 as reauthenticateWithPopup, a5 as reauthenticateWithRedirect, a6 as reload, a7 as revokeAccessToken, a8 as sendEmailVerification, a9 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, ab as setPersistence, ac as signInAnonymously, ad as signInWithCredential, ae as signInWithCustomToken, af as signInWithEmailAndPassword, ag as signInWithEmailLink, ah as signInWithPhoneNumber, ai as signInWithPopup, aj as signInWithRedirect, ak as signOut, al as unlink, am as updateCurrentUser, an as updateEmail, ao as updatePassword, ap as updatePhoneNumber, aq as updateProfile, ar as useDeviceLanguage, as as validatePassword, at as verifyBeforeUpdateEmail, au as verifyPasswordResetCode } from './index-
|
|
1
|
+
import { av as _assert, aw as debugAssert, ax as _isIOS, ay as _isAndroid, az as _fail, aA as _getRedirectUrl, aB as _isIOS7Or8, aC as _createError, aD as _getProjectConfig, aE as AuthEventManager, aF as _getInstance, r as browserLocalPersistence, aG as _persistenceKeyName, t as browserSessionPersistence, aH as _getRedirectResult, aI as _overrideRedirectResult, aJ as _clearRedirectOutcomes, aK as _castAuth } from './index-FS_b96H7.js';
|
|
2
|
+
export { A as ActionCodeOperation, a as ActionCodeURL, b as AuthCredential, c as AuthErrorCodes, aL as AuthImpl, aM as AuthPopup, E as EmailAuthCredential, d as EmailAuthProvider, F as FacebookAuthProvider, e as FactorId, aN as FetchProvider, G as GithubAuthProvider, f as GoogleAuthProvider, O as OAuthCredential, g as OAuthProvider, h as OperationType, P as PhoneAuthCredential, i as PhoneAuthProvider, j as PhoneMultiFactorGenerator, k as ProviderId, R as RecaptchaVerifier, aO as SAMLAuthCredential, S as SAMLAuthProvider, l as SignInMethod, T as TotpMultiFactorGenerator, m as TotpSecret, n as TwitterAuthProvider, aP as UserImpl, aQ as _generateEventId, aR as _getClientVersion, o as applyActionCode, p as beforeAuthStateChanged, q as browserCookiePersistence, s as browserPopupRedirectResolver, 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 getAuth, H as getIdToken, I as getIdTokenResult, J as getMultiFactorResolver, K as getRedirectResult, L as inMemoryPersistence, M as indexedDBLocalPersistence, N as initializeAuth, Q as initializeRecaptchaConfig, U as isSignInWithEmailLink, V as linkWithCredential, W as linkWithPhoneNumber, X as linkWithPopup, Y as linkWithRedirect, Z as multiFactor, _ as onAuthStateChanged, $ as onIdTokenChanged, a0 as parseActionCodeURL, a1 as prodErrorMap, a2 as reauthenticateWithCredential, a3 as reauthenticateWithPhoneNumber, a4 as reauthenticateWithPopup, a5 as reauthenticateWithRedirect, a6 as reload, a7 as revokeAccessToken, a8 as sendEmailVerification, a9 as sendPasswordResetEmail, aa as sendSignInLinkToEmail, ab as setPersistence, ac as signInAnonymously, ad as signInWithCredential, ae as signInWithCustomToken, af as signInWithEmailAndPassword, ag as signInWithEmailLink, ah as signInWithPhoneNumber, ai as signInWithPopup, aj as signInWithRedirect, ak as signOut, al as unlink, am as updateCurrentUser, an as updateEmail, ao as updatePassword, ap as updatePhoneNumber, aq as updateProfile, ar as useDeviceLanguage, as as validatePassword, at as verifyBeforeUpdateEmail, au as verifyPasswordResetCode } from './index-FS_b96H7.js';
|
|
3
3
|
import { querystringDecode } from '@firebase/util';
|
|
4
4
|
import '@firebase/app';
|
|
5
5
|
import '@firebase/logger';
|
package/dist/index.webworker.js
CHANGED
|
@@ -533,7 +533,7 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
var name = "@firebase/auth";
|
|
536
|
-
var version = "1.13.
|
|
536
|
+
var version = "1.13.5-20260818172054";
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* @license
|
|
@@ -3663,10 +3663,6 @@ class IndexedDBLocalPersistence {
|
|
|
3663
3663
|
window.addEventListener('pagehide', this.onPageHide);
|
|
3664
3664
|
window.addEventListener('pageshow', this.onPageShow);
|
|
3665
3665
|
}
|
|
3666
|
-
if (typeof document !== 'undefined' &&
|
|
3667
|
-
typeof document.addEventListener === 'function') {
|
|
3668
|
-
document.addEventListener('visibilitychange', this.onVisibilityChange);
|
|
3669
|
-
}
|
|
3670
3666
|
}
|
|
3671
3667
|
unregisterLifecycleListeners() {
|
|
3672
3668
|
if (typeof window !== 'undefined' &&
|
|
@@ -3674,10 +3670,6 @@ class IndexedDBLocalPersistence {
|
|
|
3674
3670
|
window.removeEventListener('pagehide', this.onPageHide);
|
|
3675
3671
|
window.removeEventListener('pageshow', this.onPageShow);
|
|
3676
3672
|
}
|
|
3677
|
-
if (typeof document !== 'undefined' &&
|
|
3678
|
-
typeof document.removeEventListener === 'function') {
|
|
3679
|
-
document.removeEventListener('visibilitychange', this.onVisibilityChange);
|
|
3680
|
-
}
|
|
3681
3673
|
}
|
|
3682
3674
|
constructor() {
|
|
3683
3675
|
this.type = "LOCAL" /* PersistenceType.LOCAL */;
|
|
@@ -3688,14 +3680,14 @@ class IndexedDBLocalPersistence {
|
|
|
3688
3680
|
// setTimeout return value is platform specific
|
|
3689
3681
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3690
3682
|
this.pollTimer = null;
|
|
3691
|
-
this.
|
|
3683
|
+
this.isClosing = false;
|
|
3692
3684
|
this.pendingWrites = 0;
|
|
3693
3685
|
this.receiver = null;
|
|
3694
3686
|
this.sender = null;
|
|
3695
3687
|
this.serviceWorkerReceiverAvailable = false;
|
|
3696
3688
|
this.activeServiceWorker = null;
|
|
3697
3689
|
this.onPageHide = () => {
|
|
3698
|
-
this.
|
|
3690
|
+
this.isClosing = true;
|
|
3699
3691
|
this.stopPolling();
|
|
3700
3692
|
if (this.dbPromise) {
|
|
3701
3693
|
this.dbPromise.then(db => db.close()).catch(() => { });
|
|
@@ -3703,30 +3695,20 @@ class IndexedDBLocalPersistence {
|
|
|
3703
3695
|
}
|
|
3704
3696
|
};
|
|
3705
3697
|
this.onPageShow = () => {
|
|
3706
|
-
if (this.
|
|
3707
|
-
this.
|
|
3698
|
+
if (this.isClosing) {
|
|
3699
|
+
this.isClosing = false;
|
|
3708
3700
|
if (Object.keys(this.listeners).length > 0) {
|
|
3709
3701
|
this.startPolling();
|
|
3710
3702
|
}
|
|
3711
3703
|
}
|
|
3712
3704
|
};
|
|
3713
|
-
this.onVisibilityChange = () => {
|
|
3714
|
-
if (typeof document !== 'undefined') {
|
|
3715
|
-
if (document.visibilityState === 'hidden') {
|
|
3716
|
-
this.onPageHide();
|
|
3717
|
-
}
|
|
3718
|
-
else if (document.visibilityState === 'visible') {
|
|
3719
|
-
this.onPageShow();
|
|
3720
|
-
}
|
|
3721
|
-
}
|
|
3722
|
-
};
|
|
3723
3705
|
// Fire & forget the service worker registration as it may never resolve
|
|
3724
3706
|
this._workerInitializationPromise =
|
|
3725
3707
|
this.initializeServiceWorkerMessaging().then(() => { }, () => { });
|
|
3726
3708
|
}
|
|
3727
3709
|
async _openDb() {
|
|
3728
|
-
if (this.
|
|
3729
|
-
throw new Error('Database is closing
|
|
3710
|
+
if (this.isClosing) {
|
|
3711
|
+
throw new Error('Database is closing');
|
|
3730
3712
|
}
|
|
3731
3713
|
if (this.dbPromise) {
|
|
3732
3714
|
return this.dbPromise;
|
|
@@ -3745,7 +3727,7 @@ class IndexedDBLocalPersistence {
|
|
|
3745
3727
|
return await op(db);
|
|
3746
3728
|
}
|
|
3747
3729
|
catch (e) {
|
|
3748
|
-
if (this.
|
|
3730
|
+
if (this.isClosing) {
|
|
3749
3731
|
throw e;
|
|
3750
3732
|
}
|
|
3751
3733
|
if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {
|
|
@@ -3877,7 +3859,7 @@ class IndexedDBLocalPersistence {
|
|
|
3877
3859
|
});
|
|
3878
3860
|
}
|
|
3879
3861
|
async _poll() {
|
|
3880
|
-
if (this.
|
|
3862
|
+
if (this.isClosing) {
|
|
3881
3863
|
return [];
|
|
3882
3864
|
}
|
|
3883
3865
|
try {
|
|
@@ -3886,7 +3868,7 @@ class IndexedDBLocalPersistence {
|
|
|
3886
3868
|
const getAllRequest = getObjectStore(db, false).getAll();
|
|
3887
3869
|
return new DBPromise(getAllRequest).toPromise();
|
|
3888
3870
|
});
|
|
3889
|
-
if (this.
|
|
3871
|
+
if (this.isClosing) {
|
|
3890
3872
|
return [];
|
|
3891
3873
|
}
|
|
3892
3874
|
if (!result) {
|
|
@@ -3917,7 +3899,7 @@ class IndexedDBLocalPersistence {
|
|
|
3917
3899
|
return keys;
|
|
3918
3900
|
}
|
|
3919
3901
|
catch (e) {
|
|
3920
|
-
if (!this.
|
|
3902
|
+
if (!this.isClosing) {
|
|
3921
3903
|
_logWarn(`Firebase Auth cross-tab polling failed with error: ${e}`);
|
|
3922
3904
|
}
|
|
3923
3905
|
return [];
|