public LoginPageViewModel(IClientService clientService, IPageNavigator pageNavigator)
        {
            _clientService = clientService;
            _pageNavigator = pageNavigator;

            InitCommands();
            LoadAuthenticationInfo();

            var authenticationInfo = _clientService.AuthenticationInfo;

            UserLogin    = authenticationInfo.UserLogin;
            UserPassword = authenticationInfo.UserPassword;

            if (authenticationInfo.IsAuthenticated)
            {
                _pageNavigator.GoToPostsPage(null, false);
                return;
            }

            switch (authenticationInfo.LastAuthenticationType)
            {
            case AuthenticationType.Credentials when authenticationInfo.AreCredentialsPresent:
                LoginAsync();
                break;

            case AuthenticationType.Google:
                _pageNavigator.GoToLoginWithGooglePage();
                break;

            case AuthenticationType.Facebook:
                _pageNavigator.GoToLoginWithFacebookPage();
                break;

            default:
                break;
            }
        }