Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): handle 401 for wrong password case #19662

Merged
merged 9 commits into from
Feb 10, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ export const AuthProvider = ({
if (error.response) {
const { status } = error.response;
if (status === ClientErrors.UNAUTHORIZED) {
if (error.config.url === '/users/refresh') {
// For login or refresh we don't want to fire another refresh req
// Hence rejecting it
if (['/users/refresh', '/users/login'].includes(error.config.url)) {
return Promise.reject(error as Error);
}
handleStoreProtectedRedirectPath();
Expand Down
Loading