Unable to authenticate github on AuthHelper.php line 132

Author: NirzakCreated Mar 24, 2026Updated Apr 9, 2026
Labelsbug

Describe the bug During vercel deploy after the latest changes I faced the following error

In AuthHelper.php line 132:

Could not authenticate against github.com

To Reproduce Fetch the latest changes of the repo that has occured for last couple of months. Try to deploy it on vercel

Expected behavior It should deploy it without any problem as I have already setup the TOKEN value with my github access token

Possible Solution

After I have set COMPOSER_AUTH environment variable with the following value on vercel, {"github-oauth": {"github.com": "GITHUB_TOKEN"}}

the deployment worked.

Source: DenverCoder1/github-readme-streak-stats