Skip to content

Commit

Permalink
fix: Turn off progress bar when using web based authorization (#5438)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmeduru authored Sep 1, 2022
1 parent 4bc7029 commit d60b43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/otplease.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const log = require('./log-shim')
async function otplease (npm, opts, fn) {
try {
return await fn(opts)
Expand All @@ -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')

Expand Down

0 comments on commit d60b43f

Please sign in to comment.