Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel committed Jun 29, 2022
1 parent 835033d commit a2356bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/otplease.js
Expand Up @@ -8,7 +8,7 @@ async function otplease (npm, opts, fn) {

const isBackwardsCompatibleOTP = err.code === 'E401' && /one-time pass/.test(err.body)
const isClassicOTP = err.code === 'EOTP'
const isWebOTP = err.code === 'EOTP' && err.body.authUrl && err.body.doneUrl
const isWebOTP = err.code === 'EOTP' && err.body?.authUrl && err.body?.doneUrl

if (isWebOTP) {
const webAuth = require('./web-auth')
Expand Down

0 comments on commit a2356bf

Please sign in to comment.