Skip to content

Commit

Permalink
frontend: remove secret_key and loginKey from local storage after log…
Browse files Browse the repository at this point in the history
…out.
  • Loading branch information
ffreddow committed Oct 15, 2024
1 parent a77bdaa commit 9b141e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export async function logout(logout_all: boolean) {
credentials: "include",
});

localStorage.removeItem("loginKey");
localStorage.removeItem("secret_key");

window.location.reload();
}

Expand Down

0 comments on commit 9b141e6

Please sign in to comment.