Change github token


#1

I opened a git project of mine. It has its origin in github. In the github pane, I was requested a “token”, I thought I had to type my account name and typed it, I got “unknown error” with a “try again” button.

I suppose that the “token” I had to type was the password, but I cannot find a way to enter it.

I’m beginning to think that that “token” is something else, but… what??? and: How do I enter it since there isn’t anything in the ui that permits me to enter it!!!


#2

I replied to your issue but just to mention here as well, in 1.22 (currently in beta), you can logout explicitly which will let you enter another token.

In the meantime, the token was likely saved by a program on your computer that stores credentials (e.g. Keychain Access on macOS). What operating system are you running?

I suppose that the “token” I had to type was the password, but I cannot find a way to enter it.

I’m beginning to think that that “token” is something else, but… what???

The token is an Oauth token which lets the GitHub package access your repositories on your behalf. In the GitHub panel, after you click the Login button, you should see this:

get-token

Click on the link and you’ll be taken to atom.io where you login with your GitHub credentials, and then you’ll be given a token that you can copy and paste into the GitHub package.

So if you can let me know what OS you’re using, hopefully we can figure out how to clear the saved token so you can go through the login process again.


#3

It’s ubuntu 16.04


#4

I found the problem: I hadn’t keyring installed


#5

Glad you sorted things out on your computer - I checked on my Ubuntu VM and found that I could clear the token I entered from the “Password and Keys” program:

passwords

Once I cleared that entry, I was prompted for a token again.


#6

I have the same problem on Mac OS 10.13.5. I have pasted a wrong token and now I could not communicate with Github. I’ve tried to delete the token on my Github account but does not helped.

  • Isn’t there a “easy way” to change the token?
  • What if I have several GitHub Accounts how could I change my credential/ token?

Many thanks


#7

I don’t know if there’s an easy way to handle things if you use a lot of different accounts, you would have to logout each time with GitHub: Logout and then login again if a different account needs to be used.