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