示例#1
0
        public void SaveLoggedUserGoogleId(string googleId)
        {
            if (_preferences.ContainsKey(GoogleIdKey))
            {
                _preferences.Remove(GoogleIdKey);
            }

            _preferences.Set(GoogleIdKey, googleId);
        }
示例#2
0
        public async Task LogoutAsync()
        {
            _loggingService.Trace("Executing AuthentificationService.LogoutAsync");

            _preferences.Remove(UserSettingsKeys.RememberServerChoice);
            _preferences.Remove(UserSettingsKeys.SavedServerChoice);
            _preferences.Remove(UserSettingsKeys.LastLoginMethod);

            await ClearUserTokenAndCookie(_loginProvider);
            await ClearDatabases();
        }
        public virtual bool Remove(string key)
        {
            var exists = _preferences.ContainsKey(key);

            _preferences.Remove(key);

            return(exists);
        }
 public void ClearAuthData()
 {
     _authRepository.ClearTokenPayload();
     _preferences.Remove(PreferenceKeys.IsAuthenticated);
 }
示例#5
0
 public void Remove(string key, string sharedName) =>
 _preferences.Remove(key, sharedName);