From d60b43f3825452dd8b9b5879c287df232c9a8dc8 Mon Sep 17 00:00:00 2001 From: Sandeep Meduru <73886592+sandeepmeduru@users.noreply.github.com> Date: Fri, 2 Sep 2022 02:46:33 +0530 Subject: [PATCH] fix: Turn off progress bar when using web based authorization (#5438) --- lib/utils/otplease.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/otplease.js b/lib/utils/otplease.js index 0e20e7a797ae0..e40ef57730c30 100644 --- a/lib/utils/otplease.js +++ b/lib/utils/otplease.js @@ -1,3 +1,4 @@ +const log = require('./log-shim') async function otplease (npm, opts, fn) { try { return await fn(opts) @@ -7,6 +8,7 @@ async function otplease (npm, opts, fn) { } if (isWebOTP(err)) { + log.disableProgress() const webAuth = require('./web-auth') const openUrlPrompt = require('./open-url-prompt')