Files
KART-FRONT-NEXT/src/app/(pages)/(main)/layout.tsx

11 lines
534 B
TypeScript

import { AuthSessionGate } from "@/components/app-shell/AuthSessionGate";
import { AppMainLayout } from "@/components/app-shell/AppMainLayout";
export const dynamic = "force-dynamic";
export default function MainLayout({ children }: Readonly<{ children: React.ReactNode }>) {
// External JWTs live in this tab, so authentication is checked after hydration.
// Every BFF/API request still enforces verified server authentication and scope.
return <AuthSessionGate><AppMainLayout>{children}</AppMainLayout></AuthSessionGate>;
}