fix ==> setAuthen '/'

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-19 17:06:41 +07:00
parent 56d1bacc09
commit 222d999dba

View file

@ -12,7 +12,7 @@ const authenticated = async () => ((await getToken()) ? true : false);
async function setAuthen(r: AuthResponse) {
await setCookie(ACCESS_TOKEN, r.access_token, r.expires_in);
window.location.href = "/login";
window.location.href = "/";
}
async function logout() {