import { api } from '@/lib/api-client'

interface LoginResponse {
  token: string
  user: {
    id: string
    email: string
    firstName: string
    lastName: string
    role: string
  }
}

export async function login(email: string, password: string): Promise<LoginResponse> {
  return api.post<LoginResponse>('/v1/auth/login', { email, password })
}
