コード例 #1
0
        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());
        }
コード例 #2
0
 private async Task AddCredentialsToStorageAsync()
 {
     if (LoginRequestModel.RememberMe)
     {
         await accountCredentialStorage.SaveCredential(LoginRequestModel);
     }
     else
     {
         await secureStorageService.RemoveAsync(SecureStorageKey.AccountCredential);
     }
 }