feat: email+password auth with db-backed sessions
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
692ffa97c5
commit
5f8746cfae
+2
-1
@@ -1,2 +1,3 @@
|
||||
import { redirect } from "next/navigation";
|
||||
export default function Home() { redirect("/login"); }
|
||||
import { sessionUser } from "@/lib/auth";
|
||||
export default async function Home() { redirect((await sessionUser()) ? "/app" : "/login"); }
|
||||
|
||||
Reference in New Issue
Block a user