first user setup and login

This commit is contained in:
2025-06-23 13:27:45 -04:00
parent bbe5eb0ccd
commit 12148e642d
13 changed files with 216 additions and 80 deletions

21
app/(auth)/layout.tsx Normal file
View File

@@ -0,0 +1,21 @@
'use client'
import { SessionProvider, useSession } from 'next-auth/react'
import { redirect } from 'next/navigation'
import { ReactNode } from 'react'
import Navbar from '@/components/Navbar'
export default function AuthLayout({ children }: { children: ReactNode }) {
return (
<>
<SessionProvider>
<Navbar />
<main className="p-4">
{/* Could also add a private header here */}
{children}
</main>
</SessionProvider>
</>
)
}