fixed login auth issue
CI / test (push) Successful in 5s

This commit is contained in:
2026-01-27 09:23:38 -05:00
parent 77c31ae4f9
commit cb46430ce4
3 changed files with 10 additions and 12 deletions
+2 -2
View File
@@ -417,9 +417,9 @@ export default function PrivacyPolicy() {
<br />
Battl Builder, LLC.
<br />
[Your Address]
{/* [Your Address]
<br />
[City, State, ZIP]
[City, State, ZIP] */}
</p>
</div>
<p className="mt-4 text-sm">
+6 -9
View File
@@ -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 (
<div className="min-h-screen bg-neutral-950 text-zinc-50">
<AuthProvider>
<TopNav />
<Suspense fallback={<div className="h-[52px]" />}>
<BuilderNav />
</Suspense>
<main className="min-h-screen">{children}</main>
</AuthProvider>
<TopNav />
<Suspense fallback={<div className="h-[52px]" />}>
<BuilderNav />
</Suspense>
<main className="min-h-screen">{children}</main>
</div>
);
}
}
+2 -1
View File
@@ -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");