Authentication failure in Heroku CLI after password change

后端 未结 6 483
耶瑟儿~
耶瑟儿~ 2020-12-28 09:31

After a password change on heroku\'s website, I can\'t access the heroku api.

When I do heroku login, I get Authentication successful, even tho

6条回答
  •  Happy的楠姐
    2020-12-28 09:54

    Are you using the heroku-accounts plugin? If so, try uninstalling it.

    You may not need to uninstall it...

    Make sure you are not in a project directory (or you may run into the "account not found" loop).

    cd
    

    List your accounts.

    heroku accounts
    

    On each account where the password was changed

    heroku accounts:remove ACCOUNT
    heroku accounts:add ACCOUNT
    

    (I did not need to do anything with the ~/.ssh/config.)

    Reset your default account, if needed.

    heroku accounts:default ACCOUNT
    

    If you changed the account name or git config --unset heroku.account.

    cd /path/to/your/project
    git config --add heroku.account ACCOUNT
    

    I didn't want to give up on the heroku-accounts plugin. :)

提交回复
热议问题