@firebase/auth 1.7.6 → 1.7.7-20240814182916
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-d289c196.js → index-87639511.js} +2 -39
- package/dist/browser-cjs/{index-d289c196.js.map → index-87639511.js.map} +1 -1
- 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/{popup_redirect-a8611c3f.js → popup_redirect-43c594be.js} +2 -39
- package/dist/cordova/{popup_redirect-a8611c3f.js.map → popup_redirect-43c594be.js.map} +1 -1
- package/dist/esm2017/{index-21205181.js → index-34b5121d.js} +2 -39
- package/dist/esm2017/{index-21205181.js.map → index-34b5121d.js.map} +1 -1
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/esm5/{index-5260c5e2.js → index-5dcb33aa.js} +2 -39
- package/dist/esm5/{index-5260c5e2.js.map → index-5dcb33aa.js.map} +1 -1
- package/dist/esm5/index.js +1 -1
- package/dist/esm5/internal.js +2 -2
- package/dist/index.webworker.esm5.js +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/internal.js +1 -28
- package/dist/node/internal.js.map +1 -1
- package/dist/node/{totp-46adb912.js → totp-9f039ca0.js} +2 -14
- package/dist/node/{totp-46adb912.js.map → totp-9f039ca0.js.map} +1 -1
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +3 -30
- package/dist/node-esm/internal.js.map +1 -1
- package/dist/node-esm/{totp-67638892.js → totp-7a3dbd0a.js} +3 -13
- package/dist/node-esm/{totp-67638892.js.map → totp-7a3dbd0a.js.map} +1 -1
- package/dist/rn/{index-a138cc45.js → index-b21b0f01.js} +2 -13
- package/dist/rn/{index-a138cc45.js.map → index-b21b0f01.js.map} +1 -1
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +1 -28
- 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 -28
- package/dist/web-extension-cjs/internal.js.map +1 -1
- package/dist/web-extension-cjs/{register-cf5512c4.js → register-21f99a3c.js} +2 -13
- package/dist/web-extension-cjs/{register-cf5512c4.js.map → register-21f99a3c.js.map} +1 -1
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +3 -30
- package/dist/web-extension-esm2017/internal.js.map +1 -1
- package/dist/web-extension-esm2017/{register-5aef0e11.js → register-198be9a1.js} +3 -13
- package/dist/web-extension-esm2017/{register-5aef0e11.js.map → register-198be9a1.js.map} +1 -1
- package/package.json +3 -3
package/dist/node-esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-
|
|
1
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-7a3dbd0a.js';
|
|
2
2
|
import '@firebase/app';
|
|
3
3
|
import '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { au as _getInstance, av as _assert, aw as _signInWithCredential, ax as _reauthenticate, ay as _link$1, L as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _persistenceKeyName, aD as _serverAppCurrentUserOperationNotSupportedError, aE as _castAuth, aF as FederatedAuthProvider, aG as BaseOAuthProvider, aH as _emulatorUrl, aI as _performApiRequest, aJ as _isIOS, aK as _isAndroid, aL as _isIOS7Or8, aM as _createError, aN as
|
|
2
|
-
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes,
|
|
3
|
-
import { isEmpty, querystring,
|
|
1
|
+
import { au as _getInstance, av as _assert, aw as _signInWithCredential, ax as _reauthenticate, ay as _link$1, L as AuthCredential, az as signInWithIdp, aA as _fail, aB as debugAssert, aC as _persistenceKeyName, aD as _serverAppCurrentUserOperationNotSupportedError, aE as _castAuth, aF as FederatedAuthProvider, aG as BaseOAuthProvider, aH as _emulatorUrl, aI as _performApiRequest, aJ as _isIOS, aK as _isAndroid, aL as _isIOS7Or8, aM as _createError, aN as _isMobileBrowser, aO as _isIE10 } from './totp-7a3dbd0a.js';
|
|
2
|
+
export { A as ActionCodeOperation, ai as ActionCodeURL, L as AuthCredential, I as AuthErrorCodes, aQ as AuthImpl, M as EmailAuthCredential, V as EmailAuthProvider, W as FacebookAuthProvider, F as FactorId, aS as FetchProvider, Y as GithubAuthProvider, X as GoogleAuthProvider, N as OAuthCredential, Z as OAuthProvider, O as OperationType, Q as PhoneAuthCredential, P as PhoneAuthProvider, m as PhoneMultiFactorGenerator, p as ProviderId, R as RecaptchaVerifier, aT as SAMLAuthCredential, _ as SAMLAuthProvider, S as SignInMethod, T as TotpMultiFactorGenerator, n as TotpSecret, $ as TwitterAuthProvider, aP as UserImpl, av as _assert, aE as _castAuth, aA as _fail, aR as _getClientVersion, au as _getInstance, aC as _persistenceKeyName, a7 as applyActionCode, x as beforeAuthStateChanged, b as browserLocalPersistence, k as browserPopupRedirectResolver, a as browserSessionPersistence, a8 as checkActionCode, a6 as confirmPasswordReset, K as connectAuthEmulator, aa as createUserWithEmailAndPassword, G as debugErrorMap, E as deleteUser, af as fetchSignInMethodsForEmail, aq as getAdditionalUserInfo, o as getAuth, an as getIdToken, ao as getIdTokenResult, as as getMultiFactorResolver, j as getRedirectResult, U as inMemoryPersistence, i as indexedDBLocalPersistence, J as initializeAuth, t as initializeRecaptchaConfig, ad as isSignInWithEmailLink, a2 as linkWithCredential, l as linkWithPhoneNumber, d as linkWithPopup, g as linkWithRedirect, at as multiFactor, y as onAuthStateChanged, w as onIdTokenChanged, aj as parseActionCodeURL, H as prodErrorMap, a3 as reauthenticateWithCredential, r as reauthenticateWithPhoneNumber, e as reauthenticateWithPopup, h as reauthenticateWithRedirect, ar as reload, D as revokeAccessToken, ag as sendEmailVerification, a5 as sendPasswordResetEmail, ac as sendSignInLinkToEmail, q as setPersistence, a0 as signInAnonymously, a1 as signInWithCredential, a4 as signInWithCustomToken, ab as signInWithEmailAndPassword, ae as signInWithEmailLink, s as signInWithPhoneNumber, c as signInWithPopup, f as signInWithRedirect, C as signOut, ap as unlink, B as updateCurrentUser, al as updateEmail, am as updatePassword, u as updatePhoneNumber, ak as updateProfile, z as useDeviceLanguage, v as validatePassword, ah as verifyBeforeUpdateEmail, a9 as verifyPasswordResetCode } from './totp-7a3dbd0a.js';
|
|
3
|
+
import { isEmpty, querystring, querystringDecode } from '@firebase/util';
|
|
4
4
|
import 'tslib';
|
|
5
5
|
import { _isFirebaseServerApp, SDK_VERSION } from '@firebase/app';
|
|
6
6
|
import '@firebase/component';
|
|
@@ -951,10 +951,6 @@ function isRedirectEvent(event) {
|
|
|
951
951
|
* See the License for the specific language governing permissions and
|
|
952
952
|
* limitations under the License.
|
|
953
953
|
*/
|
|
954
|
-
function _iframeCannotSyncWebStorage() {
|
|
955
|
-
const ua = getUA();
|
|
956
|
-
return _isSafari(ua) || _isIOS(ua);
|
|
957
|
-
}
|
|
958
954
|
// The polling period in case events are not supported
|
|
959
955
|
const _POLLING_INTERVAL_MS = 1000;
|
|
960
956
|
// The IE 10 localStorage cross tab synchronization delay in milliseconds
|
|
@@ -968,8 +964,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
968
964
|
// setTimeout return value is platform specific
|
|
969
965
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
970
966
|
this.pollTimer = null;
|
|
971
|
-
// Safari or iOS browser and embedded in an iframe.
|
|
972
|
-
this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
|
|
973
967
|
// Whether to use polling instead of depending on window events
|
|
974
968
|
this.fallbackToPolling = _isMobileBrowser();
|
|
975
969
|
this._shouldAllowMigration = true;
|
|
@@ -1008,27 +1002,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
1008
1002
|
// Remove polling listener to prevent possible event duplication.
|
|
1009
1003
|
this.stopPolling();
|
|
1010
1004
|
}
|
|
1011
|
-
// Safari embedded iframe. Storage event will trigger with the delta
|
|
1012
|
-
// changes but no changes will be applied to the iframe localStorage.
|
|
1013
|
-
if (this.safariLocalStorageNotSynced) {
|
|
1014
|
-
// Get current iframe page value.
|
|
1015
|
-
const storedValue = this.storage.getItem(key);
|
|
1016
|
-
// Value not synchronized, synchronize manually.
|
|
1017
|
-
if (event.newValue !== storedValue) {
|
|
1018
|
-
if (event.newValue !== null) {
|
|
1019
|
-
// Value changed from current value.
|
|
1020
|
-
this.storage.setItem(key, event.newValue);
|
|
1021
|
-
}
|
|
1022
|
-
else {
|
|
1023
|
-
// Current value deleted.
|
|
1024
|
-
this.storage.removeItem(key);
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
else if (this.localCache[key] === event.newValue && !poll) {
|
|
1028
|
-
// Already detected and processed, do not trigger listeners again.
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
1005
|
const triggerListeners = () => {
|
|
1033
1006
|
// Keep local map up to date in case storage event is triggered before
|
|
1034
1007
|
// poll.
|