Dec 13, 2016
0
Level 1
How to convert passport invalid refresh token exception into json response
I'm using passport for creating tokens and refresh tokens in my project. the problem I'm facing is when I try to login by sending refresh token alongside my login body (which that refresh token is expired) I get invalid request - refresh token expired exception,
and some times I get {"Message":"Failed to log in"} error message when I try to login with expired refresh token.
any idea how to fix this issue?
Please or to participate in this conversation.