This commit is contained in:
eric
2026-03-12 04:27:59 -05:00
parent 40230dd646
commit feddc85df3
2 changed files with 2 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ export default function AuthModal({ isOpen, onClose, onSuccess }: AuthModalProps
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ token: result.token, record: result.record }),
credentials: "include",
});
} catch {
/* ignore */

View File

@@ -25,7 +25,7 @@ export default function NavbarComponent() {
let mounted = true;
(async () => {
try {
const res = await fetch("/api/auth/me");
const res = await fetch("/api/auth/me", { credentials: "include" });
const data = await res.json();
if (!mounted) return;
if (data?.user && data?.token) {