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,4 +1,5 @@
import { AccountSidebar } from "@/components/account-sidebar"
import { AuthGuard } from "@/components/auth-guard"
import { Header } from "@/components/header"
export default function AccountLayout({ children }: { children: React.ReactNode }) {
@@ -9,7 +10,9 @@ export default function AccountLayout({ children }: { children: React.ReactNode
<div className="hidden md:block">
<AccountSidebar />
</div>
<main className="flex-1 p-6">{children}</main>
<main className="flex-1 p-6">
<AuthGuard>{children}</AuthGuard>
</main>
</div>
</div>
)