How to convert passport invalid refresh token exception into json response

Posted 2 years ago by anonymox

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 sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.