Still getting data after expire SANCTUM

Issue

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.



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, 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?