/**
 * Endpoint temporal de debug para ver TODOS los headers
 * ELIMINAR después de debugging
 */
export default defineEventHandler((event) => {
  const headers = getHeaders(event)

  return {
    timestamp: new Date().toISOString(),
    headers: headers,
    authentikHeaders: Object.fromEntries(
      Object.entries(headers).filter(([key]) => key.toLowerCase().startsWith('x-authentik-'))
    )
  }
})
