Add login flow

This commit is contained in:
KMKoushik
2024-04-28 18:55:04 +10:00
parent f608669f04
commit 3a462fb50b
13 changed files with 618 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
import { redirect } from "next/navigation";
import { getServerAuthSession } from "~/server/auth";
import LoginPage from "./login-page";
export default async function Login() {
const session = await getServerAuthSession();
if (session) {
redirect("/dashboard");
}
return <LoginPage />;
}