better-auth/apps/web/app/(saas)/auth/layout.tsx

15 lines
427 B
TypeScript
Raw Permalink Normal View History

2025-10-29 13:43:43 +05:00
import { SessionProvider } from "@saas/auth/components/SessionProvider";
import { AuthWrapper } from "@saas/shared/components/AuthWrapper";
import type { PropsWithChildren } from "react";
export const dynamic = "force-dynamic";
export const revalidate = 0;
export default function AuthLayout({ children }: PropsWithChildren) {
return (
<SessionProvider>
<AuthWrapper>{children}</AuthWrapper>
</SessionProvider>
);
}