import { auth } from "@/auth"
import { redirect } from "next/navigation"

export default async function Page() {
  const session = await auth()

  if (session) {
    redirect("/account/dashboard")
  } else {
    redirect("/account/login")
  }
}