(async () => {
const r = await fetch("/api/auth/session", {
credentials: "include",
cache: "no-store"
});
const data = await r.json();
console.log("Текущий сайт:", location.origin);
console.log("HTTP status:", r.status);
console.log("Account UUID:", data?.account?.id || "не найден");
return data?.account?.id || null;
})();