Skip to content

Commit

Permalink
Auto-submit 2FA (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Barrena committed Feb 17, 2020
1 parent 32d6b1c commit d589d46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -47,7 +47,7 @@
"is-scoped": "^2.1.0",
"issue-regex": "^3.1.0",
"listr": "^0.14.3",
"listr-input": "^0.2.0",
"listr-input": "^0.2.1",
"log-symbols": "^3.0.0",
"meow": "^6.0.0",
"new-github-release-url": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion source/npm/handle-npm-error.js
Expand Up @@ -18,7 +18,8 @@ const handleNpmError = (error, task, message, executor) => {
done: otp => {
task.title = title;
return executor(otp);
}
},
autoSubmit: value => value.length === 6
}).pipe(
catchError(error => handleNpmError(error, task, 'OTP was incorrect, try again:', executor))
);
Expand Down

0 comments on commit d589d46

Please sign in to comment.