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

elo's avatar
Level 3

Nova route throws Authentication Exception Error

I recently purchased a nova license and downloaded v2.3.0 and added it to a laravel API project.

When I try to access nova via the default route localhost:8000/nova I get an AuthenticationException error but when I go to localhost:8000/nova/login I am able to reach the login page. But when I logout I get the same error.

I tried changing the default path to admin in config/nova.php and when I visit either localhost:8000/admin or localhost:8000/admin/login I get the same error.

How can I correct this behavior? I would like to customize the path to nova when I move to a staging and production environment so I need to get this to work locally first.

Here's the changes I made in config/nova.php

'url' => env('APP_URL', '/admin'),

'path' => '/admin',
0 likes
2 replies
elo's avatar
Level 3

On my development server (local) I can access nova pages alright but I can only do so when I go through localhost:8000/nova/login. When I go through localhost:8000/nova it throws the error.

To restrict access to different nova pages, I am using policies and it's working fine.

The issue I am facing now is not being able to access nova through the default path /nova as this is stopping me from customizing the path to something like /admin/login. In the feature I would like to have a subdomain name for my app like this admin.app.com for nova if possible and if the path cannot be customized now, then I will not be able to use this.

Please or to participate in this conversation.