Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-submit 2FA #493

Merged
merged 3 commits into from
Feb 17, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"is-scoped": "^2.1.0",
"issue-regex": "^3.1.0",
"listr": "^0.14.3",
"listr-input": "^0.2.0",
"listr-input": "LuKks/listr-input#0.2.1",
itaisteinherz marked this conversation as resolved.
Show resolved Hide resolved
"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
Original file line number Diff line number Diff line change
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