Updated login and registration with email confirmation

This commit is contained in:
pascalyazid committed 2026-05-15 18:38:34 +02:00
1 parent 061bed2b59
commit 167baf9e82
5 files changed
+104 -22

No files matched your search

+9 -1
View File
@@ -1,6 +1,14 @@
import { redirect } from "next/navigation";
import { createClient } from "@/utils/supabase/server";
import RegisterForm from "./register-form";
export default function RegisterPage() {
export default async function RegisterPage() {
const supabase = await createClient();
const {
data: { user },
} = await supabase.auth.getUser();
if (user) redirect("/profile");
return (
<main className="flex min-h-screen items-center justify-center bg-neutral-50 px-6 py-12">
<RegisterForm />