fix(mobile): set SSL options properly in background backup process (#11870) (#12206)

Co-authored-by: Yun Jiang <yjiang@pulsesecure.net>
pull/12250/head
Yun Jiang 2024-09-02 20:42:51 +01:00 committed by GitHub
parent d8b602f757
commit f46abbb5b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@ class BackgroundService {
Future<bool> _onAssetsChanged() async {
final Isar db = await loadDb();
HttpOverrides.global = HttpSSLCertOverride();
ApiService apiService = ApiService();
apiService.setAccessToken(Store.get(StoreKey.accessToken));
AppSettingsService settingService = AppSettingsService();