Example #1
0
        public async Task Login()
        {
            try
            {
                ErrorMessage = string.Empty;

                AuthenticatedUser userSession = await _apiHelper.AuthenticateAsync(Username, Password);

                await _apiHelper.GetLoggedInUserAsync(userSession.AccessToken);

                _events.PublishOnUIThread(new LoggedInEvent());
            }
            catch (Exception ex)
            {
                ErrorMessage = ex.Message;
            }
        }