fix(auth): redirect after login with token

This commit is contained in:
Orvanix
2026-03-12 11:57:44 +00:00
parent c373ffffbc
commit e98ac8a4e5
+1 -1
View File
@@ -35,7 +35,7 @@ function TokenLoginContent() {
localStorage.setItem('user', JSON.stringify(data.user));
setAuthData(data.user, data.accessToken);
router.push('/');
window.location.href = '/';
})
.catch(() => {
router.replace('/login');