diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index d7750cd7..42325f7a 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,6 +1,15 @@ +import { getServerSession } from "next-auth"; import { Landing } from "../screens/Landing"; +import { authOptions } from "../lib/auth"; +import { redirect } from "next/navigation"; export default async function Page(): Promise { + const session = await getServerSession(authOptions); + + if (!session?.user) { + return redirect("/auth"); + } + return (