NeahFront2/app/gitlab/page.tsx
2025-04-08 20:36:59 +02:00

24 lines
719 B
TypeScript

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 (
<main className="w-full min-h-screen bg-black">
<div className="w-full h-[calc(100vh-4rem)]">
<iframe
src="https://gite.slm-lab.net/user/oauth2/cube"
className="w-full h-full border-none"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
</main>
);
}