Example #1
0
        public void Logout()
        {
            AuthenticationToken = null;
            _refreshToken       = null;

            _appSettingsHelper.Write("AudioticaCloudRefreshToken", null);
            _appSettingsHelper.Write("AudioticaCloudUser", null);
            _credentialHelper.DeleteCredentials("AudioticaCloud");

            if (_dispatcherHelper != null)
            {
                _dispatcherHelper.RunAsync(() => CurrentUser = null);
                _dispatcherHelper.RunAsync(() => OnPropertyChanged("IsAuthenticated"));
            }
            else
            {
                CurrentUser = null;
            }
        }
Example #2
0
 public void Logout()
 {
     _credentialHelper.DeleteCredentials("lastfm");
     _auth = new LastAuth(ApiKeys.LastFmId, ApiKeys.LastFmSecret);
     OnAuthStateChanged();
 }