From e780a24a8ab1170dd5c79c82f1c64f3c24712740 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Fri, 18 Apr 2025 16:23:39 -0500 Subject: [PATCH] fix(auth): corrected to remove localstorage --- frontend/src/hooks/useSession.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/hooks/useSession.ts b/frontend/src/hooks/useSession.ts index 7c30b88..3af26c7 100644 --- a/frontend/src/hooks/useSession.ts +++ b/frontend/src/hooks/useSession.ts @@ -5,6 +5,12 @@ import { useEffect } from "react"; const fetchSession = async () => { const token = localStorage.getItem("auth_token"); + //temp + localStorage.removeItem("ally-supports-cache"); + localStorage.removeItem("auth-storage"); + localStorage.removeItem("nextauth.message"); + localStorage.removeItem("prod"); + if (!token) { throw new Error("No token found"); }