/**
 * Zod schema for OAuthError
 *
 * This schema provides runtime validation and type inference.
 *  * Error response for OAuth endpoints.
 *  */
import { z } from 'zod'

/**
 * Error response for OAuth endpoints.
 */
export const OAuthErrorSchema = z.object({
  error: z.string(),
  error_description: z.string().optional(),
})

/**
 * Infer TypeScript type from Zod schema
 */
export type OAuthError = z.infer<typeof OAuthErrorSchema>