Hi I edit the config/sanctum.php , I add a value for 1 min, to test if I will get an error after expiration. when I send a request after 3 mins from my SPA app, I was able to get the details. I expected that it will throw an error or some status code 422 or whatever the status code is being thrown by the laravel.
'expiration' => 1,
did I miss something in the configuration or elsewhere?
Thank you in advance.
clean your cache configuration and test it again
php artisan config:cache
php artisan cache:clear
i think it can resolve your problem .