jwt authenthication and middleware

Hello

I have a web site bult with laravel and vuejs

I have used jwt for login, all works fine

Only the middleware always reyrns false to:

//if ($this->auth->check() )
//if ($this->auth->api->check() )

if (Auth::guard('api')->check())			
{
	
	return $next($request);
}
else
{

	return redirect()->to('/admin/index');	
}

All these return false and when I refresh I get back to the home page
I have also made the default driver api in config/auth.php but still the check returns false

'defaults' => [
    'guard' => 'api',
    'passwords' => 'users',
],



'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'jwt',
        'provider' => 'users',
    ],
],

Regards

1.55 GEEK