import { verifySession } from "@app/lib/verifySession"; import { LandingProvider } from "@app/providers/LandingProvider"; import { redirect } from "next/navigation"; export default async function Page() { const user = await verifySession(); if (!user) { redirect("/auth/login"); } console.log(user); return ( <>

Logged in as {user.email}

); }