public async void SignOutbtn_Tapped(object sender, EventArgs e) { await secureStorageService.RemoveAsync(SecureStorageKey.AuthorizedToken); await secureStorageService.RemoveAsync(SecureStorageKey.AuthorizedUserInfo); await secureStorageService.RemoveAsync(SecureStorageKey.SelectedKids); await secureStorageService.RemoveAsync(SecureStorageKey.AccountCredential); await PopupNavigation.Instance.PopAllAsync(); await App.AppNavigation.PushAsync(new LoginPage()); }
private async Task AddCredentialsToStorageAsync() { if (LoginRequestModel.RememberMe) { await accountCredentialStorage.SaveCredential(LoginRequestModel); } else { await secureStorageService.RemoveAsync(SecureStorageKey.AccountCredential); } }