import { useSession } from "next-auth/react"; | |
import { useRouter } from "next/router"; | |
export default function Home() { | |
const { data: session } = useSession(); | |
const router = useRouter(); | |
if(!session) return router.push('/auth/signing') | |
return ( | |
<> | |
</> | |
); | |
} |