added patcher and redirect to homepage if user is logged in

This commit is contained in:
Polaris
2024-08-17 16:25:04 -04:00
parent a313021c9e
commit 1dc548936b
50 changed files with 3754 additions and 22 deletions

View File

@ -1,6 +1,14 @@
import { SignInForm } from "@/auth/components/signin/signin";
import { getAuth } from "@/auth/queries/getauth";
import { redirect } from "next/navigation";
const PublicHomePage = async () => {
const { user } = await getAuth();
if (user) {
redirect("/home");
}
const PublicHomePage = () => {
return (
<div className="flex h-screen items-center justify-center">
<SignInForm />