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

Documentation and/or command to update credentials #2791

Closed
jroper opened this issue Jun 28, 2021 · 5 comments
Closed

Documentation and/or command to update credentials #2791

jroper opened this issue Jun 28, 2021 · 5 comments
Labels

Comments

@jroper
Copy link

jroper commented Jun 28, 2021

I got an email from GitHub today asking me to regenerate the access token that hub uses to the new format, which I did. So I now have the new token... what do I do with it? I run hub help, nothing in there about authentication, tokens, configuration files, etc. I visit https://hub.github.com/, nothing there about tokens, authentication, configuration files. I go to https://github.com/github/hub, nothing there either. I try running a hub command, it just tells me Bad credentials, no instructions of how to update my credentials or anything. So what do I do with the token I just generated? I eventually searched issues for configuration file, and found that the configuration file for hub is ~/.config/hub, I opened that, pasted in my token, and I'm good to go. But I shouldn't have to search unrelated issues to get the answer to something is basic as this, there should at least be documentation on how to update the token, and maybe even a command to let you set a new token for when you get emails from GitHub asking you to regenerate tokens.

@jroper jroper added the feature label Jun 28, 2021
@Birdi7
Copy link

Birdi7 commented Jun 30, 2021

I totally agree with this issue. Also, if you've deleted the ~/.config/hub file, then there is no way to configure hub with any credentials. The pull-request command asks for username & password, and then prints 404 Not Found, as I have 2FA enabled

@jroper
Copy link
Author

jroper commented Jun 30, 2021

I believe when it asks you for your password, you're supposed to enter your token. There's a PR to update the prompt to ask for a token rather than a password, but I'm starting to learn this repo seems dead.

@foursixnine
Copy link

foursixnine commented Oct 20, 2021

@jroper https://mislav.net/2020/01/github-cli/ looks like so...

@mislav would you be so kind and either mention if this repo/app is out of maintenance and/pr archieve the repo stating where to go to? So that people don't try to solve problems that aren't going to be merged... (until somebody decides to fork I guess)

@hiddenist
Copy link

I don't seem to be able to set my credentials at all from the command line (hitting enter just displays ^M using zsh in my Mac terminal rather than entering my username). Haven't been able to find documentation related to it at all yet!

@mislav
Copy link
Owner

mislav commented Jan 3, 2022

Sorry for the inconvenience, everyone. We absolutely need better behavior and better documentation around authenticating. For the time being, I'm going to close this as a duplicate of #2655 (comment)

@mislav mislav closed this as completed Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants