We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bac887 commit d62d253Copy full SHA for d62d253
src/lib/npm.js
@@ -32,7 +32,7 @@ async function getNpmToken({npm, options}) {
32
} catch (err) {
33
const [error, , , response] = err;
34
35
- if (error.code === 'E401' && response.headers['www-authenticate'] === 'OTP') {
+ if ((error.code === 'E401' || error.code === 'EOTP') && response.headers['www-authenticate'] === 'OTP') {
36
await askForOTP(uri, body, npm);
37
({token} = npm);
38
} else if (error.code === 'E409') {
0 commit comments