diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a7b38f0..a4199e0 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,15 +1,27 @@ import type { ReactNode } from "react"; import "./globals.css"; +import { auth } from "@/auth"; +import { Nav } from "@/components/nav"; export const metadata = { title: "Asset & License Management", description: "Internal IT asset & license management — Ubisoft VN local IT", }; -export default function RootLayout({ children }: { children: ReactNode }) { +// Root layout wraps every route, including /login (middleware.ts can't +// exclude it — it's the one page unauthenticated users must be able to +// reach). Gate