Skip to content

Commit d60b43f

Browse files
fix: Turn off progress bar when using web based authorization (npm#5438)
1 parent 4bc7029 commit d60b43f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/utils/otplease.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const log = require('./log-shim')
12
async function otplease (npm, opts, fn) {
23
try {
34
return await fn(opts)
@@ -7,6 +8,7 @@ async function otplease (npm, opts, fn) {
78
}
89

910
if (isWebOTP(err)) {
11+
log.disableProgress()
1012
const webAuth = require('./web-auth')
1113
const openUrlPrompt = require('./open-url-prompt')
1214

0 commit comments

Comments
 (0)