The Login page is refreshed instead of showing an error when the username/password combination is not correct. This occurs because the AuthService sees 401 then calls refresh token and redirects to login page.
Check existence of the user in local storage to find out the user logged in before or he tries to log in right now. Based on this check AuthService does not refresh token when the user tries to log in.
The Login page is refreshed instead of showing an error when the username/password combination is not correct. This occurs because the AuthService sees 401 then calls refresh token and redirects to login page.