feat: initial auth config

This commit is contained in:
2025-09-14 21:46:38 +00:00
parent 1d2ef37827
commit 02506181e9
15 changed files with 626 additions and 100 deletions

View File

@@ -0,0 +1,19 @@
import { createFileRoute, Navigate, Outlet } from "@tanstack/react-router"
import { Authenticated, Unauthenticated } from "convex/react"
export const Route = createFileRoute("/_authenticated")({
component: AuthenticatedLayout,
})
function AuthenticatedLayout() {
return (
<>
<Authenticated>
<Outlet />
</Authenticated>
<Unauthenticated>
<Navigate to="/login" />
</Unauthenticated>
</>
)
}