Fix login stuff?

This commit is contained in:
Owen Schwartz
2024-10-06 18:43:20 -04:00
parent 06eb1544f4
commit d144704066
11 changed files with 76 additions and 37 deletions

View File

@@ -2,8 +2,8 @@ import LoginForm from "@app/components/LoginForm";
import { verifySession } from "@app/lib/verifySession";
import { redirect } from "next/navigation";
export async function Page() {
const { user } = await verifySession();
export default async function Page() {
const user = await verifySession();
if (user) {
redirect("/");
@@ -15,6 +15,3 @@ export async function Page() {
</>
);
}
export default Page;