Answer the question
In order to leave comments, you need to log in
How to extend or modify Laravel passport auth:api middleware?
What is done:
1-Authorization
2-Registration
3-Password recovery
4-Token
refresh When the access_token is extinguished, the auth:api middleware returns 'Unauthenticated'. When an invalid access_token, then it also returns "Unauthenticated".
Question: How can I influence the response of the middleware? That is, make it so that when access_token is rotten, return token_expired, and when access_token is invalid, return bad_token.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question