If you see the following message when working with Composer on your Magento 2 store, updating Composer itself may help. Run this command in your shell:
|
1 |
php composer.phar self-update |
or
|
1 |
composer self-update |
That should fix the issue and remove the error message. The message is:
[UnexpectedValueException]
Your github oauth token for github.com contains invalid characters: “ghp_…”
Fixing Composer error: Invalid characters in GitHub OAuth token
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.