fosrl.pangolin/src/app/auth/login/page.tsx

21 lines
386 B
TypeScript
Raw Normal View History

import LoginForm from "@app/components/LoginForm";
import { verifySession } from "@app/lib/verifySession";
import { redirect } from "next/navigation";
2024-10-06 09:55:45 -04:00
export async function Page() {
const { user } = await verifySession();
2024-10-06 09:55:45 -04:00
if (user) {
redirect("/");
2024-10-06 09:55:45 -04:00
}
return (
<>
<LoginForm redirect={"test"} />
</>
2024-10-06 09:55:45 -04:00
);
}
export default Page;