I have this problem, i have implemented a JWT token with refresh token options when the JWT token expire. When the token expires my serverless backend return a 401 and in this case with my angular interceptor i'll call the http API for refresh my jwt token and after this i call again the request ,http, without the user logout from his session. But the browser console show the 401 error and i want to prevent this one.
So how can i prevent the error in the console browser? I must return a different code instead of 401 like a 200 or there is another way?
Thank you