kuma-archive/src/components/logout/index.tsx
2025-03-18 16:20:49 +09:00

11 lines
194 B
TypeScript

import { useAuthStore } from "../../store/auth";
function Logout() {
const auth = useAuthStore();
auth.clearToken();
document.location.href = "/";
return <></>;
}
export default Logout;