@firebase/auth 1.9.0-canary.70e08cf95 → 1.9.0-canary.84dfeca39
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-a7b19ebb.js → index-fc894b65.js} +20 -6
- package/dist/browser-cjs/index-fc894b65.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-bcf14849.js → popup_redirect-bb89320d.js} +21 -7
- package/dist/cordova/popup_redirect-bb89320d.js.map +1 -0
- package/dist/esm2017/{index-4f54a18c.js → index-7e0263ea.js} +20 -6
- package/dist/esm2017/index-7e0263ea.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/index.webworker.js +19 -5
- 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-53b63107.js → totp-f104a2de.js} +20 -6
- package/dist/node/totp-f104a2de.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-0d7d88e7.js → totp-3f85c5bc.js} +20 -6
- package/dist/node-esm/totp-3f85c5bc.js.map +1 -0
- package/dist/rn/{index-a23f7ff5.js → index-35b10c54.js} +21 -7
- package/dist/rn/index-35b10c54.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-b62bf59f.js → register-495a4024.js} +21 -7
- package/dist/web-extension-cjs/register-495a4024.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-99d7b62c.js → register-29fee46c.js} +21 -7
- package/dist/web-extension-esm2017/register-29fee46c.js.map +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-a7b19ebb.js.map +0 -1
- package/dist/cordova/popup_redirect-bcf14849.js.map +0 -1
- package/dist/esm2017/index-4f54a18c.js.map +0 -1
- package/dist/node/totp-53b63107.js.map +0 -1
- package/dist/node-esm/totp-0d7d88e7.js.map +0 -1
- package/dist/rn/index-a23f7ff5.js.map +0 -1
- package/dist/web-extension-cjs/register-b62bf59f.js.map +0 -1
- package/dist/web-extension-esm2017/register-99d7b62c.js.map +0 -1
|
@@ -3690,21 +3690,35 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
3690
3690
|
*/
|
|
3691
3691
|
function connectAuthEmulator(auth, url, options) {
|
|
3692
3692
|
const authInternal = _castAuth(auth);
|
|
3693
|
-
_assert(authInternal._canInitEmulator, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3694
3693
|
_assert(/^https?:\/\//.test(url), authInternal, "invalid-emulator-scheme" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */);
|
|
3695
3694
|
const disableWarnings = !!(options === null || options === void 0 ? void 0 : options.disableWarnings);
|
|
3696
3695
|
const protocol = extractProtocol(url);
|
|
3697
3696
|
const { host, port } = extractHostAndPort(url);
|
|
3698
3697
|
const portStr = port === null ? '' : `:${port}`;
|
|
3699
3698
|
// Always replace path with "/" (even if input url had no path at all, or had a different one).
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
authInternal.emulatorConfig = Object.freeze({
|
|
3699
|
+
const emulator = { url: `${protocol}//${host}${portStr}/` };
|
|
3700
|
+
const emulatorConfig = Object.freeze({
|
|
3703
3701
|
host,
|
|
3704
3702
|
port,
|
|
3705
3703
|
protocol: protocol.replace(':', ''),
|
|
3706
3704
|
options: Object.freeze({ disableWarnings })
|
|
3707
3705
|
});
|
|
3706
|
+
// There are a few scenarios to guard against if the Auth instance has already started:
|
|
3707
|
+
if (!authInternal._canInitEmulator) {
|
|
3708
|
+
// Applications may not initialize the emulator for the first time if Auth has already started
|
|
3709
|
+
// to make network requests.
|
|
3710
|
+
_assert(authInternal.config.emulator && authInternal.emulatorConfig, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3711
|
+
// Applications may not alter the configuration of the emulator (aka pass a different config)
|
|
3712
|
+
// once Auth has started to make network requests.
|
|
3713
|
+
_assert(deepEqual(emulator, authInternal.config.emulator) &&
|
|
3714
|
+
deepEqual(emulatorConfig, authInternal.emulatorConfig), authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3715
|
+
// It's valid, however, to invoke connectAuthEmulator() after Auth has started making
|
|
3716
|
+
// connections, so long as the config matches the existing config. This results in a no-op.
|
|
3717
|
+
return;
|
|
3718
|
+
}
|
|
3719
|
+
authInternal.config.emulator = emulator;
|
|
3720
|
+
authInternal.emulatorConfig = emulatorConfig;
|
|
3721
|
+
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3708
3722
|
if (!disableWarnings) {
|
|
3709
3723
|
emitEmulatorWarning();
|
|
3710
3724
|
}
|
|
@@ -10665,7 +10679,7 @@ function _isEmptyString(input) {
|
|
|
10665
10679
|
}
|
|
10666
10680
|
|
|
10667
10681
|
var name = "@firebase/auth";
|
|
10668
|
-
var version = "1.9.0-canary.
|
|
10682
|
+
var version = "1.9.0-canary.84dfeca39";
|
|
10669
10683
|
|
|
10670
10684
|
/**
|
|
10671
10685
|
* @license
|
|
@@ -10920,4 +10934,4 @@ _setExternalJSProvider({
|
|
|
10920
10934
|
registerAuth("Browser" /* ClientPlatform.BROWSER */);
|
|
10921
10935
|
|
|
10922
10936
|
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 };
|
|
10923
|
-
//# sourceMappingURL=index-
|
|
10937
|
+
//# sourceMappingURL=index-7e0263ea.js.map
|