From d39a980e597b747ecb76832bbd5e3a99dfc5e901 Mon Sep 17 00:00:00 2001 From: Alma Date: Tue, 8 Apr 2025 21:06:14 +0200 Subject: [PATCH] learn iframe fixed --- app/learn/page.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 app/learn/page.tsx diff --git a/app/learn/page.tsx b/app/learn/page.tsx new file mode 100644 index 00000000..5a70905c --- /dev/null +++ b/app/learn/page.tsx @@ -0,0 +1,24 @@ +import { getServerSession } from "next-auth/next"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; +import { redirect } from "next/navigation"; + +export default async function Page() { + const session = await getServerSession(authOptions); + + if (!session) { + redirect("/signin"); + } + + return ( +
+
+