From 03fefcb296b3357219769cb2412d38c29fad8f22 Mon Sep 17 00:00:00 2001 From: Jon Petersson Date: Tue, 19 Sep 2023 11:27:04 +0200 Subject: [PATCH] Fix REST.AccessTokenManager being used before initialisation in AppDelegate --- ios/MullvadVPN/AppDelegate.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift index a68a78728bac..e5a96b2669e1 100644 --- a/ios/MullvadVPN/AppDelegate.swift +++ b/ios/MullvadVPN/AppDelegate.swift @@ -36,7 +36,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD private(set) var accountsProxy: REST.AccountsProxy! private(set) var devicesProxy: REST.DevicesProxy! - private(set) var accessTokenManager: REST.AccessTokenManager! private(set) var addressCacheTracker: AddressCacheTracker! private(set) var relayCacheTracker: RelayCacheTracker! private(set) var storePaymentManager: StorePaymentManager! @@ -77,7 +76,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD accountsProxy: accountsProxy, devicesProxy: devicesProxy, apiProxy: apiProxy, - accessTokenManager: accessTokenManager + accessTokenManager: proxyFactory.configuration.accessTokenManager ) let constraintsUpdater = RelayConstraintsUpdater()