jwt-auth redirect to home instead of 403
I’m using tymon/jwt-auth
library.
I have some routes that need to be auth token and some of my routes don’t need it (for example to get cities
api).
I want to show 403
status header code when the user needs a token and it’s expired.
How can i retrieve Auth data in 404 pages in Laravel 11
The fix was simple in previous Laravel version, but now with the current files restructuring, it is not clear how to solve this anymore,