Relative Content

Tag Archive for phplaravelauthentication

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.