Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have updated my laravel vendor using composer. I have bought a package which is located in a github private repo. On downloading composer ask username and password, I have entered the wrong password so it gives me an error. After that I run composer update again but this time it just keep the old wrong password it did not ask me to enter the password again, somewhat save in composer cache. How could I remove the old password in composer?

like image 232
drexsien Avatar asked Aug 24 '13 08:08

drexsien


3 Answers

In your ~/.composer, you'll have a file named config.json which contains OAuth token used to log you in GitHub.

Clear your OAuth token or delete this file.

like image 123
netvision73 Avatar answered Nov 15 '22 02:11

netvision73


Mine was in ~/.config/composer in there is a auth.json that contains saved credentials. Like netvision73 answer, clear your OAuth token or delete the file.

like image 14
Xenocide8998 Avatar answered Nov 15 '22 01:11

Xenocide8998


I had only clear the cache composer clear-cache

like image 4
padina Avatar answered Nov 15 '22 02:11

padina