Tricks

Composer update with password protected package

Jan 20, 2023
Caspar Bisschop
FAQ, Integration

For some packages you need to give a password for composer update. This can be a problem on hosts like Digital Ocean.

For this you can create a auth.json file in your project root (where you also find your composer.json file):

{
"http-basic": {
"filament-notifications-pro.composer.sh": {
"username": "[email protected]",
"password": "xxxxxx-xxxxxx-xxxxx-xxxxxx-xxxxxxxxx:toolsortechs"
}
}
}

No comments yet…