@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.
- package/dist/browser-cjs/{index-d289c196.js → index-6466c523.js} +2 -39
- package/dist/browser-cjs/{index-d289c196.js.map → index-6466c523.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-ac25dc52.js} +2 -39
- package/dist/cordova/{popup_redirect-a8611c3f.js.map → popup_redirect-ac25dc52.js.map} +1 -1
- package/dist/esm2017/{index-21205181.js → index-7faacd3c.js} +2 -39
- package/dist/esm2017/{index-21205181.js.map → index-7faacd3c.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-cb49f69e.js} +2 -39
- package/dist/esm5/{index-5260c5e2.js.map → index-cb49f69e.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-a0970420.js} +2 -14
- package/dist/node/{totp-46adb912.js.map → totp-a0970420.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-fbdd0770.js} +3 -13
- package/dist/node-esm/{totp-67638892.js.map → totp-fbdd0770.js.map} +1 -1
- package/dist/rn/{index-a138cc45.js → index-5d830846.js} +2 -13
- package/dist/rn/{index-a138cc45.js.map → index-5d830846.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-368e0cdb.js} +2 -13
- package/dist/web-extension-cjs/{register-cf5512c4.js.map → register-368e0cdb.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-532067da.js} +3 -13
- package/dist/web-extension-esm2017/{register-5aef0e11.js.map → register-532067da.js.map} +1 -1
- package/package.json +1 -1
|
@@ -2223,16 +2223,6 @@ function _isMobileBrowser(ua = getUA()) {
|
|
|
2223
2223
|
_isBlackBerry(ua) ||
|
|
2224
2224
|
/windows phone/i.test(ua) ||
|
|
2225
2225
|
_isIEMobile(ua));
|
|
2226
|
-
}
|
|
2227
|
-
function _isIframe() {
|
|
2228
|
-
try {
|
|
2229
|
-
// Check that the current window is not the top window.
|
|
2230
|
-
// If so, return true.
|
|
2231
|
-
return !!(window && window !== window.top);
|
|
2232
|
-
}
|
|
2233
|
-
catch (e) {
|
|
2234
|
-
return false;
|
|
2235
|
-
}
|
|
2236
2226
|
}
|
|
2237
2227
|
|
|
2238
2228
|
/**
|
|
@@ -7033,10 +7023,6 @@ class BrowserPersistenceClass {
|
|
|
7033
7023
|
* See the License for the specific language governing permissions and
|
|
7034
7024
|
* limitations under the License.
|
|
7035
7025
|
*/
|
|
7036
|
-
function _iframeCannotSyncWebStorage() {
|
|
7037
|
-
const ua = getUA();
|
|
7038
|
-
return _isSafari(ua) || _isIOS(ua);
|
|
7039
|
-
}
|
|
7040
7026
|
// The polling period in case events are not supported
|
|
7041
7027
|
const _POLLING_INTERVAL_MS$1 = 1000;
|
|
7042
7028
|
// The IE 10 localStorage cross tab synchronization delay in milliseconds
|
|
@@ -7050,8 +7036,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
7050
7036
|
// setTimeout return value is platform specific
|
|
7051
7037
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7052
7038
|
this.pollTimer = null;
|
|
7053
|
-
// Safari or iOS browser and embedded in an iframe.
|
|
7054
|
-
this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
|
|
7055
7039
|
// Whether to use polling instead of depending on window events
|
|
7056
7040
|
this.fallbackToPolling = _isMobileBrowser();
|
|
7057
7041
|
this._shouldAllowMigration = true;
|
|
@@ -7090,27 +7074,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
7090
7074
|
// Remove polling listener to prevent possible event duplication.
|
|
7091
7075
|
this.stopPolling();
|
|
7092
7076
|
}
|
|
7093
|
-
// Safari embedded iframe. Storage event will trigger with the delta
|
|
7094
|
-
// changes but no changes will be applied to the iframe localStorage.
|
|
7095
|
-
if (this.safariLocalStorageNotSynced) {
|
|
7096
|
-
// Get current iframe page value.
|
|
7097
|
-
const storedValue = this.storage.getItem(key);
|
|
7098
|
-
// Value not synchronized, synchronize manually.
|
|
7099
|
-
if (event.newValue !== storedValue) {
|
|
7100
|
-
if (event.newValue !== null) {
|
|
7101
|
-
// Value changed from current value.
|
|
7102
|
-
this.storage.setItem(key, event.newValue);
|
|
7103
|
-
}
|
|
7104
|
-
else {
|
|
7105
|
-
// Current value deleted.
|
|
7106
|
-
this.storage.removeItem(key);
|
|
7107
|
-
}
|
|
7108
|
-
}
|
|
7109
|
-
else if (this.localCache[key] === event.newValue && !poll) {
|
|
7110
|
-
// Already detected and processed, do not trigger listeners again.
|
|
7111
|
-
return;
|
|
7112
|
-
}
|
|
7113
|
-
}
|
|
7114
7077
|
const triggerListeners = () => {
|
|
7115
7078
|
// Keep local map up to date in case storage event is triggered before
|
|
7116
7079
|
// poll.
|
|
@@ -10468,7 +10431,7 @@ function _isEmptyString(input) {
|
|
|
10468
10431
|
}
|
|
10469
10432
|
|
|
10470
10433
|
var name = "@firebase/auth";
|
|
10471
|
-
var version = "1.7.
|
|
10434
|
+
var version = "1.7.7-20240813205648";
|
|
10472
10435
|
|
|
10473
10436
|
/**
|
|
10474
10437
|
* @license
|
|
@@ -10723,4 +10686,4 @@ _setExternalJSProvider({
|
|
|
10723
10686
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
10724
10687
|
|
|
10725
10688
|
export { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _isIOS7Or8 as aA, _createError as aB, _assert as aC, AuthEventManager as aD, _getInstance as aE, _persistenceKeyName as aF, _getRedirectResult as aG, _overrideRedirectResult as aH, _clearRedirectOutcomes as aI, _castAuth as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, _generateEventId as aN, AuthPopup as aO, FetchProvider as aP, SAMLAuthCredential as aQ, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, debugAssert as au, _isIOS as av, _isAndroid as aw, _fail as ax, _getRedirectUrl as ay, _getProjectConfig as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };
|
|
10726
|
-
//# sourceMappingURL=index-
|
|
10689
|
+
//# sourceMappingURL=index-7faacd3c.js.map
|