refac/fix: signout redirect flow

This commit is contained in:
Timothy Jaeryang Baek
2025-05-17 00:38:39 +04:00
parent fcb93f3155
commit 7df6d7f325
4 changed files with 23 additions and 12 deletions
+3 -3
View File
@@ -464,11 +464,11 @@
}
if (now >= exp) {
await userSignOut();
const res = await userSignOut();
user.set(null);
localStorage.removeItem('token');
location.href = '/auth';
location.href = res?.redirect_url ?? '/auth';
}
};