@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-
|
|
2
|
-
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-
|
|
1
|
+
import { r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, c as connectAuthEmulator } from './register-532067da.js';
|
|
2
|
+
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-532067da.js';
|
|
3
3
|
import { _getProvider, getApp } from '@firebase/app';
|
|
4
4
|
import { getDefaultEmulatorHost } from '@firebase/util';
|
|
5
5
|
import 'tslib';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a8 as STORAGE_AVAILABLE_KEY, a9 as
|
|
2
|
-
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes,
|
|
3
|
-
import {
|
|
1
|
+
import { a8 as STORAGE_AVAILABLE_KEY, a9 as _isMobileBrowser, aa as _isIE10, ab as _assert, ac as Delay, ad as _window, ae as isV2, af as _createError, ag as _recaptchaV2ScriptUrl, ah as _loadJS, ai as _generateCallbackName, aj as _castAuth, ak as _isHttpOrHttps, al as _isWorker, am as getRecaptchaParams, an as _serverAppCurrentUserOperationNotSupportedError, z as signInWithCredential, ao as _assertLinkedStatus, B as linkWithCredential, C as reauthenticateWithCredential, ap as startEnrollPhoneMfa, aq as startSignInPhoneMfa, ar as sendPhoneVerificationCode, as as _link$1, P as PhoneAuthCredential, at as _getInstance, au as _signInWithCredential, av as _reauthenticate, m as AuthCredential, aw as signInWithIdp, ax as _fail, ay as debugAssert, az as _assertInstanceOf, aA as _generateEventId, aB as FederatedAuthProvider, aC as _persistenceKeyName, aD as _performApiRequest, aE as _getCurrentUrl, aF as _gapiScriptUrl, aG as _emulatorUrl, aH as _isChromeIOS, aI as _isFirefox, aJ as _isIOSStandalone, aK as BaseOAuthProvider, aL as _setWindowLocation, aM as _isSafari, aN as _isIOS, aO as MultiFactorAssertionImpl, aP as finalizeEnrollPhoneMfa, aQ as finalizeSignInPhoneMfa, r as registerAuth, i as initializeAuth, a as indexedDBLocalPersistence, e as beforeAuthStateChanged, o as onIdTokenChanged, c as connectAuthEmulator, aR as _setExternalJSProvider, aS as _isAndroid, aT as _isIOS7Or8 } from './register-532067da.js';
|
|
2
|
+
export { Y as ActionCodeURL, m as AuthCredential, A as AuthErrorCodes, aV as AuthImpl, E as EmailAuthCredential, q as EmailAuthProvider, F as FacebookAuthProvider, aX as FetchProvider, t as GithubAuthProvider, G as GoogleAuthProvider, O as OAuthCredential, w as OAuthProvider, P as PhoneAuthCredential, aY as SAMLAuthCredential, S as SAMLAuthProvider, T as TotpMultiFactorGenerator, b as TotpSecret, x as TwitterAuthProvider, aU as UserImpl, ab as _assert, aj as _castAuth, ax as _fail, aA as _generateEventId, aW as _getClientVersion, at as _getInstance, aC as _persistenceKeyName, J as applyActionCode, e as beforeAuthStateChanged, K as checkActionCode, I as confirmPasswordReset, c as connectAuthEmulator, M as createUserWithEmailAndPassword, l as debugErrorMap, k as deleteUser, V as fetchSignInMethodsForEmail, a4 as getAdditionalUserInfo, a1 as getIdToken, a2 as getIdTokenResult, a6 as getMultiFactorResolver, n as inMemoryPersistence, a as indexedDBLocalPersistence, i as initializeAuth, d as initializeRecaptchaConfig, R as isSignInWithEmailLink, B as linkWithCredential, a7 as multiFactor, f as onAuthStateChanged, o as onIdTokenChanged, Z as parseActionCodeURL, p as prodErrorMap, C as reauthenticateWithCredential, a5 as reload, j as revokeAccessToken, W as sendEmailVerification, H as sendPasswordResetEmail, Q as sendSignInLinkToEmail, s as setPersistence, y as signInAnonymously, z as signInWithCredential, D as signInWithCustomToken, N as signInWithEmailAndPassword, U as signInWithEmailLink, h as signOut, a3 as unlink, g as updateCurrentUser, $ as updateEmail, a0 as updatePassword, _ as updateProfile, u as useDeviceLanguage, v as validatePassword, X as verifyBeforeUpdateEmail, L as verifyPasswordResetCode } from './register-532067da.js';
|
|
3
|
+
import { querystring, getModularInstance, getUA, isEmpty, getExperimentalSetting, getDefaultEmulatorHost, querystringDecode } from '@firebase/util';
|
|
4
4
|
import { _isFirebaseServerApp, SDK_VERSION, _getProvider, getApp } from '@firebase/app';
|
|
5
5
|
import 'tslib';
|
|
6
6
|
import '@firebase/component';
|
|
@@ -175,10 +175,6 @@ class BrowserPersistenceClass {
|
|
|
175
175
|
* See the License for the specific language governing permissions and
|
|
176
176
|
* limitations under the License.
|
|
177
177
|
*/
|
|
178
|
-
function _iframeCannotSyncWebStorage() {
|
|
179
|
-
const ua = getUA();
|
|
180
|
-
return _isSafari(ua) || _isIOS(ua);
|
|
181
|
-
}
|
|
182
178
|
// The polling period in case events are not supported
|
|
183
179
|
const _POLLING_INTERVAL_MS = 1000;
|
|
184
180
|
// The IE 10 localStorage cross tab synchronization delay in milliseconds
|
|
@@ -192,8 +188,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
192
188
|
// setTimeout return value is platform specific
|
|
193
189
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
194
190
|
this.pollTimer = null;
|
|
195
|
-
// Safari or iOS browser and embedded in an iframe.
|
|
196
|
-
this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();
|
|
197
191
|
// Whether to use polling instead of depending on window events
|
|
198
192
|
this.fallbackToPolling = _isMobileBrowser();
|
|
199
193
|
this._shouldAllowMigration = true;
|
|
@@ -232,27 +226,6 @@ class BrowserLocalPersistence extends BrowserPersistenceClass {
|
|
|
232
226
|
// Remove polling listener to prevent possible event duplication.
|
|
233
227
|
this.stopPolling();
|
|
234
228
|
}
|
|
235
|
-
// Safari embedded iframe. Storage event will trigger with the delta
|
|
236
|
-
// changes but no changes will be applied to the iframe localStorage.
|
|
237
|
-
if (this.safariLocalStorageNotSynced) {
|
|
238
|
-
// Get current iframe page value.
|
|
239
|
-
const storedValue = this.storage.getItem(key);
|
|
240
|
-
// Value not synchronized, synchronize manually.
|
|
241
|
-
if (event.newValue !== storedValue) {
|
|
242
|
-
if (event.newValue !== null) {
|
|
243
|
-
// Value changed from current value.
|
|
244
|
-
this.storage.setItem(key, event.newValue);
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
// Current value deleted.
|
|
248
|
-
this.storage.removeItem(key);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
else if (this.localCache[key] === event.newValue && !poll) {
|
|
252
|
-
// Already detected and processed, do not trigger listeners again.
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
229
|
const triggerListeners = () => {
|
|
257
230
|
// Keep local map up to date in case storage event is triggered before
|
|
258
231
|
// poll.
|