14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { getServerSession } from "next-auth/next";
|
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
|
import { redirect } from "next/navigation";
|
|
import { FlowFrame } from "@/components/flow/flow-frame";
|
|
|
|
export default async function Page() {
|
|
const session = await getServerSession(authOptions);
|
|
|
|
if (!session) {
|
|
redirect("/signin");
|
|
}
|
|
|
|
return <FlowFrame />;
|
|
}
|