import { NextRequest, NextResponse } from 'next/server' import { auth } from '@/lib/auth' import { prisma } from '@/lib/db' export async function POST(request: NextRequest) { const session = await auth() if (!session?.user?.id) { return NextResponse.json({ error: 'Unauthorized' }, { status: 401 }) } await prisma.user.update({ where: { id: session.user.id }, data: { steamId: null, steamPersonaname: null, steamAvatar: null } }) return NextResponse.json({ success: true }) }