refac/fix: signout redirect flow

This commit is contained in:
Timothy Jaeryang Baek committed 2025-05-17 00:38:39 +04:00
1 parent fcb93f3155
commit 7df6d7f325
4 files changed
+23 -12

No files matched your search

@@ -156,12 +156,11 @@
<button
class="flex rounded-md py-2 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition"
on:click={async () => {
await userSignOut();
const res = await userSignOut();
user.set(null);
localStorage.removeItem('token');
location.href = '/auth';
location.href = res?.redirect_url ?? '/auth';
show = false;
}}
>