When the JWT token that I'm sending is expired, I'm getting this message...
{
"detail": "Signature has expired."
}
Now, I want to change the response with my custom message, like...
{
"message": "token has expired.",
"data": null,
"status": 401
}
I tried it to do within APIView, but It's not working.
Here's what ive did for my project. Not the best solution i guess. But it works fine.