I have searched a lot but couldnot find a definitive answer. What i want in the axios to redirect me to the login page whenever 401 arrives and for the 403 just call the API for a new access token and re-request all the failed requests.
I coulnot find a way to route in the interceptor of axios and i dont want to route by refreshing the page as it would violate the SPA.
For the 403 i coulnot find a way way to re-request all the failed request.