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 11 months ago • 2 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

@huyvu23 Have a look at #191

JKortmann avatar Jul 16 '25 09:07 JKortmann

#191

it not work for me :(

huyvu23 avatar Jul 29 '25 01:07 huyvu23