From be7d49820d454ebdbe2435b667eea1dc223cb0e4 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Tue, 22 Jul 2025 21:14:01 +0200 Subject: [PATCH] fix: ensure proper cleanup during logout by removing token and users from storage --- client/src/utils/functions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/utils/functions.ts b/client/src/utils/functions.ts index a932be6..70a2300 100644 --- a/client/src/utils/functions.ts +++ b/client/src/utils/functions.ts @@ -6,5 +6,7 @@ export const greeting = () => { export const logout = () => { Cookies.remove("name"); + Cookies.remove("token"); + localStorage.removeItem("users"); window.location.reload(); -}; +}; \ No newline at end of file