Fixed authApi for client