Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorSandeep Meduru <73886592+sandeepmeduru@users.noreply.github.com>2022-09-02 00:16:33 +0300
committerGitHub <noreply@github.com>2022-09-02 00:16:33 +0300
commitd60b43f3825452dd8b9b5879c287df232c9a8dc8 (patch)
tree5efade7350db3b4263eb48dd3a36145cc00ec044 /lib/utils
parent4bc702912487117e5c5316b0052917950464f278 (diff)
fix: Turn off progress bar when using web based authorization (#5438)
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/otplease.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/otplease.js b/lib/utils/otplease.js
index 0e20e7a79..e40ef5773 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')