web/app/account/page.tsx

14 lines
259 B
TypeScript
Raw Normal View History

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")
}
return null
}