public void SaveLoggedUserGoogleId(string googleId) { if (_preferences.ContainsKey(GoogleIdKey)) { _preferences.Remove(GoogleIdKey); } _preferences.Set(GoogleIdKey, googleId); }
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); }
public void Remove(string key, string sharedName) => _preferences.Remove(key, sharedName);