Skip to content

Commit 9b141e6

Browse files
committed
frontend: remove secret_key and loginKey from local storage after logout.
1 parent a77bdaa commit 9b141e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/Navbar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export async function logout(logout_all: boolean) {
1212
credentials: "include",
1313
});
1414

15+
localStorage.removeItem("loginKey");
16+
localStorage.removeItem("secret_key");
17+
1518
window.location.reload();
1619
}
1720

0 commit comments

Comments
 (0)