@firebase/auth 1.9.0-canary.6a28a72eb → 1.9.0-canary.b3e68ca41
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-16053f12.js → index-778e1007.js} +6 -20
- package/dist/browser-cjs/index-778e1007.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-9dd0e538.js → popup_redirect-7a9d9c73.js} +7 -21
- package/dist/cordova/popup_redirect-7a9d9c73.js.map +1 -0
- package/dist/esm2017/{index-83481384.js → index-fa3284b3.js} +6 -20
- package/dist/esm2017/index-fa3284b3.js.map +1 -0
- package/dist/esm2017/index.js +1 -1
- package/dist/esm2017/internal.js +2 -2
- package/dist/index.webworker.js +5 -19
- 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-6cfb252e.js → totp-37bd6a0d.js} +6 -20
- package/dist/node/totp-37bd6a0d.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-47464072.js → totp-badc9c19.js} +6 -20
- package/dist/node-esm/totp-badc9c19.js.map +1 -0
- package/dist/rn/{index-522ed10c.js → index-10d928db.js} +7 -21
- package/dist/rn/index-10d928db.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-1e4ef59d.js → register-a8ed5bee.js} +7 -21
- package/dist/web-extension-cjs/register-a8ed5bee.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-2cd31623.js → register-66e31102.js} +7 -21
- package/dist/web-extension-esm2017/register-66e31102.js.map +1 -0
- package/package.json +6 -6
- package/dist/browser-cjs/index-16053f12.js.map +0 -1
- package/dist/cordova/popup_redirect-9dd0e538.js.map +0 -1
- package/dist/esm2017/index-83481384.js.map +0 -1
- package/dist/node/totp-6cfb252e.js.map +0 -1
- package/dist/node-esm/totp-47464072.js.map +0 -1
- package/dist/rn/index-522ed10c.js.map +0 -1
- package/dist/web-extension-cjs/register-1e4ef59d.js.map +0 -1
- package/dist/web-extension-esm2017/register-2cd31623.js.map +0 -1
package/dist/node/index.js
CHANGED
package/dist/node/internal.js
CHANGED
|
@@ -3548,35 +3548,21 @@ function _initializeAuthInstance(auth, deps) {
|
|
|
3548
3548
|
*/
|
|
3549
3549
|
function connectAuthEmulator(auth, url, options) {
|
|
3550
3550
|
const authInternal = _castAuth(auth);
|
|
3551
|
+
_assert(authInternal._canInitEmulator, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3551
3552
|
_assert(/^https?:\/\//.test(url), authInternal, "invalid-emulator-scheme" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */);
|
|
3552
3553
|
const disableWarnings = !!(options === null || options === void 0 ? void 0 : options.disableWarnings);
|
|
3553
3554
|
const protocol = extractProtocol(url);
|
|
3554
3555
|
const { host, port } = extractHostAndPort(url);
|
|
3555
3556
|
const portStr = port === null ? '' : `:${port}`;
|
|
3556
3557
|
// Always replace path with "/" (even if input url had no path at all, or had a different one).
|
|
3557
|
-
|
|
3558
|
-
|
|
3558
|
+
authInternal.config.emulator = { url: `${protocol}//${host}${portStr}/` };
|
|
3559
|
+
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3560
|
+
authInternal.emulatorConfig = Object.freeze({
|
|
3559
3561
|
host,
|
|
3560
3562
|
port,
|
|
3561
3563
|
protocol: protocol.replace(':', ''),
|
|
3562
3564
|
options: Object.freeze({ disableWarnings })
|
|
3563
3565
|
});
|
|
3564
|
-
// There are a few scenarios to guard against if the Auth instance has already started:
|
|
3565
|
-
if (!authInternal._canInitEmulator) {
|
|
3566
|
-
// Applications may not initialize the emulator for the first time if Auth has already started
|
|
3567
|
-
// to make network requests.
|
|
3568
|
-
_assert(authInternal.config.emulator && authInternal.emulatorConfig, authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3569
|
-
// Applications may not alter the configuration of the emulator (aka pass a different config)
|
|
3570
|
-
// once Auth has started to make network requests.
|
|
3571
|
-
_assert(util.deepEqual(emulator, authInternal.config.emulator) &&
|
|
3572
|
-
util.deepEqual(emulatorConfig, authInternal.emulatorConfig), authInternal, "emulator-config-failed" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);
|
|
3573
|
-
// It's valid, however, to invoke connectAuthEmulator() after Auth has started making
|
|
3574
|
-
// connections, so long as the config matches the existing config. This results in a no-op.
|
|
3575
|
-
return;
|
|
3576
|
-
}
|
|
3577
|
-
authInternal.config.emulator = emulator;
|
|
3578
|
-
authInternal.emulatorConfig = emulatorConfig;
|
|
3579
|
-
authInternal.settings.appVerificationDisabledForTesting = true;
|
|
3580
3566
|
if (!disableWarnings) {
|
|
3581
3567
|
emitEmulatorWarning();
|
|
3582
3568
|
}
|
|
@@ -7081,7 +7067,7 @@ function multiFactor(user) {
|
|
|
7081
7067
|
}
|
|
7082
7068
|
|
|
7083
7069
|
var name = "@firebase/auth";
|
|
7084
|
-
var version = "1.9.0-canary.
|
|
7070
|
+
var version = "1.9.0-canary.b3e68ca41";
|
|
7085
7071
|
|
|
7086
7072
|
/**
|
|
7087
7073
|
* @license
|
|
@@ -7602,4 +7588,4 @@ exports.useDeviceLanguage = useDeviceLanguage;
|
|
|
7602
7588
|
exports.validatePassword = validatePassword;
|
|
7603
7589
|
exports.verifyBeforeUpdateEmail = verifyBeforeUpdateEmail;
|
|
7604
7590
|
exports.verifyPasswordResetCode = verifyPasswordResetCode;
|
|
7605
|
-
//# sourceMappingURL=totp-
|
|
7591
|
+
//# sourceMappingURL=totp-37bd6a0d.js.map
|