fix: ensure proper cleanup during logout by removing token and users from storage

This commit is contained in:
2025-07-22 21:14:01 +02:00
parent f05bb4c23c
commit be7d49820d

View File

@@ -6,5 +6,7 @@ export const greeting = () => {
export const logout = () => {
Cookies.remove("name");
Cookies.remove("token");
localStorage.removeItem("users");
window.location.reload();
};