How to remove username and password in composer (laravel 4)

I updated my laravel provider using composer. I bought a package that is in a private github repo. When downloading the composer, ask for the username and password, I entered the wrong password so that it gives me an error. After that, I started the update again for the composer, but this time he just saved the old incorrect password, he did not ask me to enter the password again, storing the composer somewhat. How to remove the old password in the composer?

+4
source share
2 answers

In ~/.composer , you will have a file called config.json that contains the OAuth token used to log in to GitHub.

Clear the OAuth token or delete this file.

+7
source

Mine was in ~/.config/composer , there is auth.json , which contains the stored credentials. Like netvision73's answer, clear the OAuth token or delete the file.

+4
source

Source: https://habr.com/ru/post/1498705/


All Articles