[SOLVED] Still getting data after expire SANCTUM


This Content is from Stack Overflow. Question asked by jemz

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 .

This Question was asked in StackOverflow by jemz and Answered by Jean-Lionel It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?