import { authStore } from "@root/stores/makeRequest"; const apiUrl = process.env.NODE_ENV === "production" ? "" : "https://hub.pena.digital"; const makeRequest = authStore.getState().makeRequest; export function logout() { return makeRequest({ url: apiUrl + "/auth/logout", method: "POST", useToken: true, withCredentials: true, }); }