Files
pitchfast/app/login/page.tsx

15 lines
329 B
TypeScript

import { redirect } from "next/navigation";
import { AuthEntry } from "@/components/auth-entry";
import { getCurrentMockSession } from "@/lib/mock-session";
export default async function LoginPage() {
const session = await getCurrentMockSession();
if (session) {
redirect("/dashboard");
}
return <AuthEntry />;
}