divi's avatar
Level 1

GitHub access token requested when installing Nova via composer

Hi there!

I have installed Nova into the project via composer. After the composer update command, a GitHub access token is requested from me. This is despite the fact that I have set up an active SSH key in GitHub. I have also already created an auth.json file with my email and the Nova API token and put it in my root directory.

Of course I have also added the Nova repository and laravel/nova (to my list of required packages) in my composer.json file as suggested by the documentation.

"repositories": [
    {
        "type": "composer",
        "url": "https://nova.laravel.com"
    }
],
"require": {
    "laravel/nova": "3.31"
},

Does anyone have any idea why the token is still being requested or can explain to me why I have to create the access token additionally? It seems strange to me.

Thanks a lot!

0 likes
3 replies
divi's avatar
divi
OP
Best Answer
Level 1

FYI: I could resolve this issue for myself by removing the vendor directory and running composer install again. Now only my Nova access credentials were requested but no more GitHub access token 🎉

2 likes
ÄŒamo's avatar

You should follow instructions from console and generate new token for composer In my case it was here https://github.com/settings/tokens Then store new token. On Windows Users/yourname/AppData/Roaming/Composer/auth.json

Please or to participate in this conversation.