mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 05:00:06 +00:00
fix: logout & login page home button
This commit is contained in:
@@ -42,6 +42,7 @@ export const AuthProvider = ({ children }: {
|
||||
};
|
||||
|
||||
const logout = () => {
|
||||
document.cookie.split(";").forEach(function (c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";path=/"); });
|
||||
setProfile(undefined);
|
||||
navigate("/dashboard/login", { replace: true });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user