Skip to content

Commit

Permalink
Merge pull request #928 from cherry-pick
Browse files Browse the repository at this point in the history
cherry picked from upstream
  • Loading branch information
u1-liquid authored Feb 1, 2025
2 parents 005d1c1 + 3a024e8 commit ff40c4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/frontend/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export async function signout() {
if (!$i) return;

waiting();
document.cookie.split(';').forEach((cookie) => {
const cookieName = cookie.split('=')[0].trim();
if (cookieName === 'token') {
document.cookie = `${cookieName}=; max-age=0; path=/`;
}
});
miLocalStorage.removeItem('account');
await removeAccount($i.id);
const accounts = await getAccounts();
Expand Down

0 comments on commit ff40c4b

Please sign in to comment.