diff --git a/apps/web/src/app/app/(auth)/layout.tsx b/apps/web/src/app/app/(auth)/layout.tsx index 93509cb0..38673dce 100644 --- a/apps/web/src/app/app/(auth)/layout.tsx +++ b/apps/web/src/app/app/(auth)/layout.tsx @@ -1,12 +1,17 @@ import * as React from "react"; - -// TODO: update description +import { redirect } from "next/navigation"; +import { auth } from "@clerk/nextjs"; export default function AuthLayout({ children, }: { children: React.ReactNode; }) { + const { userId } = auth(); + + if (userId) { + redirect("/app"); + } return (