9 months ago

how to change the response messages in Tymon JWT package

Posted 9 months ago by shariff

Hi I want to change response messages in the Tymon JWT package. For example while fetching the data without using token I am getting this message

"message": "Token Signature could not be verified.",
    "exception": "Tymon\JWTAuth\Exceptions\TokenInvalidException",

 I want to change that response like instead of the message  I need to pass errors

   "errors": "Invalid token.",


Please sign in or create an account to participate in this conversation.