// app/api/auth/logout/route.ts
import { NextRequest, NextResponse } from "next/server"

export async function GET(request: NextRequest) {
  const response = NextResponse.redirect(new URL("/login", request.url))
  
  // Limpar todos os cookies de autenticação
  response.cookies.delete("next-auth.session-token")
  response.cookies.delete("__Secure-next-auth.session-token")
  response.cookies.delete("next-auth.csrf-token")
  response.cookies.delete("__Host-next-auth.csrf-token")
  
  return response
}

