refac/fix: signout redirect flow
This commit is contained in:
1 parent
fcb93f3155
commit
7df6d7f325
4 files changed
+23
-12
No files matched your search
@@ -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';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user