Route [filament.auth.login] not defined

I'm getting this error when I sign out.
How do I define a custom login route for this? I just want to log out and then the user be redirected to /login but instead, I get this error (Route [filament.auth.login] not defined)

'auth' => [
'guard' => env('FILAMENT_AUTH_GUARD', 'web'),
'pages' => [
'login' => \Filament\Http\Livewire\Auth\Login::class,
],
],

In Web.php:

Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),
'verified'
])->group(function () {
//
});

I'm using Jetstream for authentication.

If I add this:
Route::redirect('/', '/login')->name('filament.auth.login');

It works until I try and log in again, then it errors with too many redirects.

I notice the browser trying to go to:
/filament/logout
Was this page helpful?