fix: exclude trakt keys from settings export

This commit is contained in:
edde746
2026-04-20 21:17:00 +02:00
parent bc57ffb930
commit 3b7b532a8d
+4 -1
View File
@@ -79,7 +79,10 @@ class SettingsExportService {
};
/// Prefix denylist. A key is excluded if it starts with any of these.
static const List<String> _denyPrefixes = ['server_endpoint_', 'episode_count_', 'watched_threshold_'];
/// `trakt_` covers OAuth session tokens and the runtime sync queue — the
/// `enable_trakt_*` feature toggles don't match this prefix and stay
/// exportable.
static const List<String> _denyPrefixes = ['server_endpoint_', 'episode_count_', 'watched_threshold_', 'trakt_'];
/// Literal prefix used by [StorageService._userPrefix] for any scoped key.
static const String _userPrefixRoot = 'user_';