From 68c6bffa2c5f9311408dc7315dfa6fe5653247fd Mon Sep 17 00:00:00 2001 From: reesporte Date: Fri, 14 Jan 2022 13:02:01 -0600 Subject: [PATCH] clear localstorage on sign out --- lattice/src/App/AuthFlow/SignOutButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lattice/src/App/AuthFlow/SignOutButton.tsx b/lattice/src/App/AuthFlow/SignOutButton.tsx index 3e76c22db..ff6b5e6ba 100644 --- a/lattice/src/App/AuthFlow/SignOutButton.tsx +++ b/lattice/src/App/AuthFlow/SignOutButton.tsx @@ -7,6 +7,7 @@ interface Props { const SignOutButton: React.FC = ({ children }) => { const signoutOnClick = (e) => { + localStorage.clear(); window.location.href = '/logout'; };