import Cookies from "js-cookie";

export function isLoggedIn(): boolean {
  const id = Cookies.get("user_id");
  return !!id && id !== "0" && id !== "" && id !== "null" && id !== "undefined";
}

export function clearAuthCookies() {
  Cookies.remove("user_id");
  Cookies.remove("auth_token");
}
