heroku / heroku-accounts

Helps use multiple accounts on Heroku.
ISC License
549 stars 38 forks source link

not able to switch between accounts #8

Open alilland opened 7 years ago

alilland commented 7 years ago

I have a personal and work account, I added both accounts, but when i go to swap from personal to work it returns that I am still on my personal account. It never wants to switch over...

i have tried deleting my work account and re added it to see if that works -- it wont let me delete my personal account since its the "current account"

screen shot 2017-04-18 at 5 35 50 pm
ransombriggs commented 7 years ago

@aronlmin sorry for the delayed response, but the way heroku-accounts work is that it stores control_air and personal in ~/.heroku/accounts and the current account in ~/.netrc under machine api.heroku.com, could you make sure that the control_air and the personal files have different username attribute? (if you wanted to post those two files + netrc be sure to mask the password attribute)

alilland commented 7 years ago

howdy, i actually worked out the solution, i had just recently upgraded my personal account to two step verification, when i logged out and logged back in i was able to swap between them just fine

thanks!

On Apr 20, 2017, at 11:44 AM, Ransom Briggs notifications@github.com wrote:

@aronlmin https://github.com/aronlmin sorry for the delayed response, but the way heroku-accounts work is that it stores control_air and personal in ~/.heroku/accounts and the current account in ~/.netrc under machine api.heroku.com, could you make sure that the control_air and the personal files have different username attribute? (if you wanted to post those two files + netrc be sure to mask the password attribute)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/heroku/heroku-accounts/issues/8#issuecomment-295852973, or mute the thread https://github.com/notifications/unsubscribe-auth/ANaPLZmhTbwaR7o9B41uzzGPUoi9SMqFks5rx6d4gaJpZM4NBDpt.

sara-g commented 7 years ago

I'm really stuck. Everything seemed to work fine switching between 2 accounts until I went to go work on an old app which should be tied to my personal account. I switch to my personal account, heroku accounts:current shows my personal account, and ~/.netrc also looks correct, but when I try to push to Heroku, I get an error that email@workaccount does not have access. It should not even be using that email from the other account.

jdx commented 7 years ago

@sara-g you're probably using ssh git, use heroku git:remote to switch to https git

sara-g commented 7 years ago

Still stuck on this. Running heroku git:remote returns "git is not a function"

sara-g commented 7 years ago

how do I uninstall heroku accounts from my computer? I can't push to heroku at all anymore. I'm not sure what to do.

chrise86 commented 5 years ago

This solved my issues when I as getting it https://github.com/heroku/heroku-accounts/issues/20#issuecomment-476369422