diff --git a/web/src/app/_components/webpage.tsx b/web/src/app/_components/webpage.tsx index 47d789e..6119987 100644 --- a/web/src/app/_components/webpage.tsx +++ b/web/src/app/_components/webpage.tsx @@ -1,22 +1,8 @@ -"use client" - -import { useEffect } from "react"; -import { redirect } from "next/navigation"; - import Header from "./header"; export default function Webpage({children}: Readonly<{children?: React.ReactNode}>) { - //check if the user is logged into the auth - useEffect(() => { - const cookies = document.cookie.split("; ") - const hasCookie = cookies.some(cookie => cookie.startsWith("session_id=")) - if (!hasCookie) { - redirect("https://auth.staging.strafes.net/") - } - }, []) - - return <> - <Header/> - {children} - </> + return (<> + <Header/> + {children} + </>) } \ No newline at end of file