Files
twotalesanimation 81ad7e4ea9 Initial commit
2026-06-11 10:46:09 +02:00

12 lines
427 B
TypeScript

// app/dashboard/page.tsx (server component)
import { requireUser } from '@/lib/auth-check';
import DashboardClient from './dashboard-client'; // will be your existing client UI
export default async function DashboardPage() {
// will redirect to /login if not authenticated
const session = await requireUser('/login');
// you can optionally pass session to client via props if desired:
return <DashboardClient />;
}