From a2356bfd820b3b1b003c6f679ea27d73a237faf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=B8ller=20Ellehauge?= Date: Wed, 29 Jun 2022 12:43:47 +0200 Subject: [PATCH] fix --- lib/utils/otplease.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/otplease.js b/lib/utils/otplease.js index 62a779afc7f1d..8bfe7da1d387f 100644 --- a/lib/utils/otplease.js +++ b/lib/utils/otplease.js @@ -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')