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