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

@@ -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) {