mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
fix: redirect to home instead of login on auth failure in backoffice and portal stores
This commit is contained in:
@@ -44,7 +44,7 @@ configureTokenRefresh({
|
||||
},
|
||||
onAuthFailure: () => {
|
||||
store.dispatch(logout());
|
||||
window.location.href = '/login';
|
||||
window.location.href = '/';
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ configureTokenRefresh({
|
||||
|
||||
onAuthFailure: () => {
|
||||
store.dispatch(logout());
|
||||
window.location.href = "/login";
|
||||
window.location.href = "/";
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user