mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12: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: () => {
|
onAuthFailure: () => {
|
||||||
store.dispatch(logout());
|
store.dispatch(logout());
|
||||||
window.location.href = '/login';
|
window.location.href = '/';
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ configureTokenRefresh({
|
|||||||
|
|
||||||
onAuthFailure: () => {
|
onAuthFailure: () => {
|
||||||
store.dispatch(logout());
|
store.dispatch(logout());
|
||||||
window.location.href = "/login";
|
window.location.href = "/";
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user