From 3b7b532a8d8b29f673ee326a2dd89505457288cf Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Mon, 20 Apr 2026 21:17:00 +0200 Subject: [PATCH] fix: exclude trakt keys from settings export --- lib/services/settings_export_service.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/services/settings_export_service.dart b/lib/services/settings_export_service.dart index e3e228c1..6d03da32 100644 --- a/lib/services/settings_export_service.dart +++ b/lib/services/settings_export_service.dart @@ -79,7 +79,10 @@ class SettingsExportService { }; /// Prefix denylist. A key is excluded if it starts with any of these. - static const List _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 _denyPrefixes = ['server_endpoint_', 'episode_count_', 'watched_threshold_', 'trakt_']; /// Literal prefix used by [StorageService._userPrefix] for any scoped key. static const String _userPrefixRoot = 'user_';