refactoring Client\Authentication
refactoring api