feat: EduEasy checkpoint - plan, scaffolding, pedagogia modules, components child+parent, API routes, Prisma schema, Docker infra, Better Auth

This commit is contained in:
Renato
2026-07-20 17:58:49 +02:00
commit e69b18abaa
49 changed files with 9842 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"use client"
import { useEffect } from "react"
import { useRouter } from "next/navigation"
import { authClient } from "@/lib/auth-client"
export default function ParentPage() {
const { data: session, isPending } = authClient.useSession()
const router = useRouter()
useEffect(() => {
if (isPending) return
if (session) {
router.replace("/parent/dashboard")
} else {
router.replace("/parent/auth/login")
}
}, [session, isPending, router])
return null
}