Implement auth.