Esempio n. 1
0
        public async void OnAuthenticationCompleted(Account i_Account)
        {
            try
            {
                await LoginHelper.SaveAccountAndLoginToBackend(i_Account);

                StartMainApp();
            }
            catch
            {
                Helpers.Alert.Show("Error", "There was a problem, please try again later.", this);
                SecureStorageAccountStore.RemoveAllAccounts();
            }
        }
Esempio n. 2
0
        public async void OnAuthenticationCompleted(Account i_Account)
        {
            DismissViewController(true, null);
            try
            {
                await LoginHelper.SaveAccountAndLoginToBackend(i_Account);

                m_HasLoggedIn = true;
                PerformSegue("launchAppSegue", this);
            }
            catch
            {
                Helpers.Alert.Display("Error", "There was a problem, please try again later.", this);
                SecureStorageAccountStore.RemoveAllAccounts();
            }
        }
Esempio n. 3
0
 public void OnAuthenticationFailed(string i_Message, Exception i_Exception)
 {
     // if permission was not granted, we do not want to store any account - to be safe
     Helpers.Alert.Show("Error", "There was a problem, please try again later.", this);
     SecureStorageAccountStore.RemoveAllAccounts();
 }
Esempio n. 4
0
 public void OnAuthenticationFailed(string i_Message, Exception i_Exception)
 {
     DismissViewController(true, null);
     SecureStorageAccountStore.RemoveAllAccounts();
     Helpers.Alert.Display("Error", "There was a problem, please try again later.", this);
 }