14 lines
301 B
TypeScript
14 lines
301 B
TypeScript
import { auth } from "@/lib/auth";
|
|
import { redirect } from "next/navigation";
|
|
import LoginClient from "@/components/LoginClient";
|
|
|
|
export default async function Login() {
|
|
const session = await auth();
|
|
|
|
if (session?.user) {
|
|
redirect("/dashboard");
|
|
}
|
|
|
|
return <LoginClient />;
|
|
}
|