feat: add auth guards to protected routes and extend requireAuth coverage

This commit is contained in:
zetaloop
2026-02-20 22:38:29 +08:00
parent c0896faa78
commit 4cc4383603
6 changed files with 63 additions and 4 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
import { AuthGuard } from "@/components/auth-guard"
import { DashboardSidebar } from "@/components/dashboard-sidebar"
import { Header } from "@/components/header"
@@ -9,7 +10,9 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
<div className="hidden md:block">
<DashboardSidebar />
</div>
<main className="flex-1 p-6">{children}</main>
<main className="flex-1 p-6">
<AuthGuard>{children}</AuthGuard>
</main>
</div>
</div>
)