axios-auth-refresh icon indicating copy to clipboard operation
axios-auth-refresh copied to clipboard

not able to catch the error and redirect the user to re-authenticate.

Open huyvu23 opened this issue 8 months ago • 0 comments

I'm working on an app with a JWT-based authentication flow for back-end API requests. The general flow is working fine; upon login the user gets a long-term refresh token and short-term access token. Using the axios-auth-refresh plug-in for axios, I am able to auto-refresh the access token when it has expired.

My problem is, when the refresh token expires, I am not able to catch the error and redirect the user to re-authenticate. Nothing I've tried catches the error

huyvu23 avatar Feb 28 '25 09:02 huyvu23