import { headers } from "next/headers"; import { auth } from "@/lib/auth"; import { redirect } from "next/navigation"; import { ChangePasswordForm } from "./change-password-form"; export const metadata = { title: "Профиль" }; export default async function ProfilePage() { const session = await auth.api.getSession({ headers: await headers() }); if (!session) redirect("/login"); return (

Профиль

Аккаунт

Имя {session.user.name}
Email {session.user.email}

Смена пароля

); }