-
Notifications
You must be signed in to change notification settings - Fork 66
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
Command failed generating auth token #12
Comments
I had the same issue and I was also wondering if it was related to two factor auth as I did get the auth code sent to my phone just after the error. |
Yes, this is related to two-factor auth. As a workaround, you can go to https://github.com/settings/applications and create a new "personal access token" with the following permissions: delete_repo, gist, repo, user. Then paste the token in to ~/.git-hub/config under the "api-token" key. |
I'm not sure how to support 2FA but I should at least detect the errors and |
Fixed in 2480754 I added a detection and prompt for 2FA in setup. Need to do it for all the other commands that use Basic Auth. |
Thanks! 👍 |
You're so welcome. I'm using the new comment feature to comment on your :+1. :) I just modified it to inline the entire existing thread in the editor while you @oalders, see if |
1 similar comment
You're so welcome. I'm using the new comment feature to comment on your :+1. :) I just modified it to inline the entire existing thread in the editor while you @oalders, see if |
After entering my github password for
git hub setup
:Command failed at line 142 in setup:api-token of /usr/lib/git-core/git-hub.d/git-hub-setup
Could this be related to two factor authentication? I'm not sure of how auth tokens are generated with GitHub.
The text was updated successfully, but these errors were encountered: