feat: email+password auth with db-backed sessions

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ahmed mohammed
2026-09-22 07:32:07 +03:00
co-authored by Claude Opus 4.7
parent 692ffa97c5
commit 5f8746cfae
13 changed files with 199 additions and 13 deletions
+2 -1
View File
@@ -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"); }