mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
19 lines
476 B
TypeScript
19 lines
476 B
TypeScript
import { verifySession } from "@app/lib/auth/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>Logged in as {user.email}</p>
|
|
</LandingProvider>
|
|
</>
|
|
);
|
|
}
|