Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lutkabe's avatar

Where to add the Laravel Nova Composer Auth API Token?

Based on the Nova guidance I added the API token into the composer.json in my project root but when using the "composer install" it fails to authenticate and asks for my account credentials. Here is my composer.json:

...
    "repositories": [
        {
            "type": "composer",
            "url": "https://nova.laravel.com",
            "options":  {
                "http": {
                    "header": [
                        "API-TOKEN: MY-NOVA-API-TOKEN"
                    ]
                }
            }
        }
    ],
...
0 likes
9 replies
devingray_'s avatar

create a file called auth.json in the root of your project

and add this

{
    "http-basic": {
        "nova.laravel.com": {
            "username": "EMAIL",
            "password": "PASSWORD"
        }
    }
}
1 like
devingray_'s avatar
When running composer update, you will be prompted to provide your login credentials for the Nova website. These credentials will authenticate your Composer session as having permission to download the Nova source code. To avoid manually typing these credentials, you may create a Composer auth.json file while optionally using your API token in place of your password.

This is an excerpt from the docs. Use your API token in place of password

1 like
tecbeast's avatar

Can you share where to find this token? There is a link in the docs, but it does not give a token.

tecbeast's avatar

the link in the docs goes to the wrong page. Found it :)

1 like
robertosantana's avatar

Exact same problem here, anybody knows how to install Nova with Token?

1 like

Please or to participate in this conversation.