Dental Care
This commit is contained in:
13
app/(auth)/layout.tsx
Normal file
13
app/(auth)/layout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export default async function AuthLayout({
|
||||
children,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
}) {
|
||||
// Removed redundant client-side redirect here.
|
||||
// The sign-in form performs role-based redirects after login
|
||||
// and middleware protects authenticated routes. Keeping the
|
||||
// layout minimal avoids redirect race conditions.
|
||||
return <>{children}</>;
|
||||
}
|
||||
Reference in New Issue
Block a user