fosrl.pangolin/src/app/page.tsx

20 lines
467 B
TypeScript
Raw Normal View History

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");
}
return (
<>
<LandingProvider user={user}>
<p>You're logged in!</p>
</LandingProvider>
</>
);
2024-09-27 19:48:49 -04:00
}