@firebase/auth 1.10.1-firebase-studio-sdk-integration.226be0bb1 → 1.10.1-firebase-studio-sdk-integration.bffdabd70
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-0239cf36.js → index-e10f87bd.js} +9 -6
- package/dist/browser-cjs/index-e10f87bd.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/{popup_redirect-d277f8f5.js → popup_redirect-9f7e4c3d.js} +10 -7
- package/dist/cordova/popup_redirect-9f7e4c3d.js.map +1 -0
- package/dist/esm2017/{index-668b4704.js → index-af9f3cd8.js} +10 -7
- package/dist/esm2017/index-af9f3cd8.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/index.webworker.js +9 -6
- 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/{totp-a59e7f4f.js → totp-c3c7eda4.js} +9 -6
- package/dist/node/totp-c3c7eda4.js.map +1 -0
- package/dist/node-esm/index.js +1 -1
- package/dist/node-esm/internal.js +2 -2
- package/dist/node-esm/{totp-32a77968.js → totp-ac4e0121.js} +10 -7
- package/dist/node-esm/totp-ac4e0121.js.map +1 -0
- package/dist/rn/{index-f25f22f1.js → index-bb8bc7f6.js} +9 -6
- package/dist/rn/index-bb8bc7f6.js.map +1 -0
- package/dist/rn/index.js +1 -1
- package/dist/rn/internal.js +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/{register-7f7b72ae.js → register-6964702c.js} +9 -6
- package/dist/web-extension-cjs/register-6964702c.js.map +1 -0
- package/dist/web-extension-esm2017/index.js +2 -2
- package/dist/web-extension-esm2017/internal.js +2 -2
- package/dist/web-extension-esm2017/{register-088d00be.js → register-306f1352.js} +10 -7
- package/dist/web-extension-esm2017/register-306f1352.js.map +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-0239cf36.js.map +0 -1
- package/dist/cordova/popup_redirect-d277f8f5.js.map +0 -1
- package/dist/esm2017/index-668b4704.js.map +0 -1
- package/dist/node/totp-a59e7f4f.js.map +0 -1
- package/dist/node-esm/totp-32a77968.js.map +0 -1
- package/dist/rn/index-f25f22f1.js.map +0 -1
- package/dist/web-extension-cjs/register-7f7b72ae.js.map +0 -1
- package/dist/web-extension-esm2017/register-088d00be.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SDK_VERSION, _isFirebaseServerApp, _getProvider, _registerComponent, registerVersion, getApp } from '@firebase/app';
|
|
2
|
-
import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, isCloudflareWorker, isCloudWorkstation, getModularInstance, base64Decode, getUA, isIE, createSubscribe, deepEqual,
|
|
2
|
+
import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, updateEmulatorBanner, FirebaseError, querystring, isCloudflareWorker, isCloudWorkstation, getModularInstance, base64Decode, getUA, isIE, createSubscribe, deepEqual, pingServer, querystringDecode, extractQuerystring, isEmpty, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';
|
|
3
3
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
4
4
|
import { __rest } from 'tslib';
|
|
5
5
|
import { Component } from '@firebase/component';
|
|
@@ -920,7 +920,9 @@ async function _performApiRequest(auth, method, path, request, customErrorMap =
|
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
922
|
async function _performFetchWithErrorHandling(auth, customErrorMap, fetchFn) {
|
|
923
|
-
|
|
923
|
+
const authInternal = auth;
|
|
924
|
+
updateEmulatorBanner('Auth', authInternal.emulatorConfig !== null);
|
|
925
|
+
authInternal._canInitEmulator = false;
|
|
924
926
|
const errorMap = Object.assign(Object.assign({}, SERVER_ERROR_MAP), customErrorMap);
|
|
925
927
|
try {
|
|
926
928
|
const networkTimeout = new NetworkTimeout(auth);
|
|
@@ -3773,12 +3775,13 @@ function connectAuthEmulator(auth, url, options) {
|
|
|
3773
3775
|
authInternal.config.emulator = emulator;
|
|
3774
3776
|
authInternal.emulatorConfig = emulatorConfig;
|
|
3775
3777
|
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3776
|
-
if (!disableWarnings) {
|
|
3778
|
+
if (!disableWarnings && !isCloudWorkstation(host)) {
|
|
3777
3779
|
emitEmulatorWarning();
|
|
3778
3780
|
}
|
|
3781
|
+
// Workaround to get cookies in Firebase Studio
|
|
3779
3782
|
if (isCloudWorkstation(host)) {
|
|
3780
|
-
|
|
3781
|
-
|
|
3783
|
+
void pingServer(`${protocol}//${host}${portStr}`);
|
|
3784
|
+
updateEmulatorBanner('Auth', true);
|
|
3782
3785
|
}
|
|
3783
3786
|
}
|
|
3784
3787
|
function extractProtocol(url) {
|
|
@@ -10881,7 +10884,7 @@ function _isEmptyString(input) {
|
|
|
10881
10884
|
}
|
|
10882
10885
|
|
|
10883
10886
|
var name = "@firebase/auth";
|
|
10884
|
-
var version = "1.10.1-firebase-studio-sdk-integration.
|
|
10887
|
+
var version = "1.10.1-firebase-studio-sdk-integration.bffdabd70";
|
|
10885
10888
|
|
|
10886
10889
|
/**
|
|
10887
10890
|
* @license
|
|
@@ -11136,4 +11139,4 @@ _setExternalJSProvider({
|
|
|
11136
11139
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
11137
11140
|
|
|
11138
11141
|
export { SAMLAuthProvider as $, ActionCodeOperation as A, useDeviceLanguage as B, updateCurrentUser as C, signOut as D, revokeAccessToken as E, FactorId as F, deleteUser as G, debugErrorMap as H, prodErrorMap as I, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as J, initializeAuth as K, connectAuthEmulator as L, AuthCredential as M, EmailAuthCredential as N, OperationType as O, PhoneAuthProvider as P, OAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, PhoneAuthCredential as U, inMemoryPersistence as V, EmailAuthProvider as W, FacebookAuthProvider as X, GoogleAuthProvider as Y, GithubAuthProvider as Z, OAuthProvider as _, browserCookiePersistence as a, TwitterAuthProvider as a0, signInAnonymously as a1, signInWithCredential as a2, linkWithCredential as a3, reauthenticateWithCredential as a4, signInWithCustomToken as a5, sendPasswordResetEmail as a6, confirmPasswordReset as a7, applyActionCode as a8, checkActionCode as a9, _getProjectConfig as aA, _isIOS7Or8 as aB, _createError as aC, _assert as aD, AuthEventManager as aE, _getInstance as aF, _persistenceKeyName as aG, _getRedirectResult as aH, _overrideRedirectResult as aI, _clearRedirectOutcomes as aJ, _castAuth as aK, UserImpl as aL, AuthImpl as aM, _getClientVersion as aN, _generateEventId as aO, AuthPopup as aP, FetchProvider as aQ, SAMLAuthCredential as aR, verifyPasswordResetCode as aa, createUserWithEmailAndPassword as ab, signInWithEmailAndPassword as ac, sendSignInLinkToEmail as ad, isSignInWithEmailLink as ae, signInWithEmailLink as af, fetchSignInMethodsForEmail as ag, sendEmailVerification as ah, verifyBeforeUpdateEmail as ai, ActionCodeURL as aj, parseActionCodeURL as ak, updateProfile as al, updateEmail as am, updatePassword as an, getIdToken as ao, getIdTokenResult as ap, unlink as aq, getAdditionalUserInfo as ar, reload as as, getMultiFactorResolver as at, multiFactor as au, debugAssert as av, _isIOS as aw, _isAndroid as ax, _fail as ay, _getRedirectUrl as az, browserLocalPersistence as b, browserSessionPersistence as c, signInWithPopup as d, linkWithPopup as e, reauthenticateWithPopup as f, signInWithRedirect as g, linkWithRedirect as h, indexedDBLocalPersistence as i, reauthenticateWithRedirect as j, getRedirectResult as k, linkWithPhoneNumber as l, browserPopupRedirectResolver as m, PhoneMultiFactorGenerator as n, TotpSecret as o, getAuth as p, ProviderId as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, setPersistence as t, updatePhoneNumber as u, initializeRecaptchaConfig as v, validatePassword as w, onIdTokenChanged as x, beforeAuthStateChanged as y, onAuthStateChanged as z };
|
|
11139
|
-
//# sourceMappingURL=index-
|
|
11142
|
+
//# sourceMappingURL=index-af9f3cd8.js.map
|