daphnis/app/page.tsx

20 lines
420 B
TypeScript
Raw Permalink Normal View History

2024-06-29 05:22:22 +00:00
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");
}
2024-06-29 05:22:22 +00:00
return (
2024-08-15 02:27:17 +00:00
<div className="flex h-screen items-center justify-center">
2024-06-29 05:22:22 +00:00
<SignInForm />
</div>
);
};
export default PublicHomePage;