setting up files
This commit is contained in:
10
components/layout/app-auth-gate.tsx
Normal file
10
components/layout/app-auth-gate.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { requireOnboardingComplete } from "@/lib/auth-helpers";
|
||||
|
||||
type AppAuthGateProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export async function AppAuthGate({ children }: AppAuthGateProps) {
|
||||
await requireOnboardingComplete();
|
||||
return children;
|
||||
}
|
||||
Reference in New Issue
Block a user