fix: ensure proper cleanup during logout by removing token and users from storage
This commit is contained in:
@@ -6,5 +6,7 @@ export const greeting = () => {
|
|||||||
|
|
||||||
export const logout = () => {
|
export const logout = () => {
|
||||||
Cookies.remove("name");
|
Cookies.remove("name");
|
||||||
|
Cookies.remove("token");
|
||||||
|
localStorage.removeItem("users");
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
};
|
};
|
Reference in New Issue
Block a user