import { NextResponse } from "next/server";
import { attachSessionCookies, type SessionUser } from "@/lib/auth/session";

const DEMO_USER: SessionUser = {
  id: "demo_user",
  name: "Sarah Mitchell",
  email: "sarah@postsync.pro",
  initials: "SM",
};

export async function POST() {
  const response = NextResponse.json({ success: true, user: DEMO_USER });
  return attachSessionCookies(response, DEMO_USER);
}
