From cb46430ce4752c29b76eef120a927f0cc44b02aa Mon Sep 17 00:00:00 2001
From: Sean
Date: Tue, 27 Jan 2026 09:23:38 -0500
Subject: [PATCH] fixed login auth issue
---
app/(app)/privacy/page.tsx | 4 ++--
app/builds/layout.tsx | 15 ++++++---------
app/login/page.tsx | 3 ++-
3 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/app/(app)/privacy/page.tsx b/app/(app)/privacy/page.tsx
index a077e00..569de57 100644
--- a/app/(app)/privacy/page.tsx
+++ b/app/(app)/privacy/page.tsx
@@ -417,9 +417,9 @@ export default function PrivacyPolicy() {
Battl Builder, LLC.
- [Your Address]
+ {/* [Your Address]
- [City, State, ZIP]
+ [City, State, ZIP] */}
diff --git a/app/builds/layout.tsx b/app/builds/layout.tsx
index 24108d4..527268a 100644
--- a/app/builds/layout.tsx
+++ b/app/builds/layout.tsx
@@ -2,20 +2,17 @@
import type { ReactNode } from "react";
import { Suspense } from "react";
-import { AuthProvider } from "@/context/AuthContext";
import { BuilderNav } from "@/components/BuilderNav";
import { TopNav } from "@/components/TopNav";
export default function BuilderLayout({ children }: { children: ReactNode }) {
return (
-
-
- }>
-
-
- {children}
-
+
+
}>
+
+
+
{children}
);
-}
\ No newline at end of file
+}
diff --git a/app/login/page.tsx b/app/login/page.tsx
index 96819eb..c22ffbb 100644
--- a/app/login/page.tsx
+++ b/app/login/page.tsx
@@ -13,7 +13,7 @@ const API_BASE_URL =
function LoginPageContent() {
const router = useRouter();
const searchParams = useSearchParams();
- const { login, loading } = useAuth();
+ const { login, refreshUser, loading } = useAuth();
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
@@ -36,6 +36,7 @@ function LoginPageContent() {
try {
await login({ email, password });
+ await refreshUser();
router.push(next);
} catch (err: any) {
setError(err?.message ?? "Failed to log in");