Skip to content

Commit 68923c0

Browse files
committed
Rather explicitly call authenticationManager.initialize()
1 parent 58fa0f8 commit 68923c0

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

WooCommerce/Classes/AppDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5757
let analytics = ServiceLocator.analytics
5858
let pushNotesManager = ServiceLocator.pushNotesManager
5959
setupAnalytics(analytics)
60+
ServiceLocator.authenticationManager.initialize()
61+
ServiceLocator.stores.initializeAfterDependenciesAreInitialized()
6062

6163
setupCocoaLumberjack()
6264
setupLibraryLogger()

WooCommerce/Classes/SceneDelegate.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
2121
self.appCoordinator = coordinator
2222
coordinator.start()
2323

24-
/// IMPORTANT:
25-
/// `AppCoordinator.start()` must be called before this, so that
26-
/// AuthenticationManager.initialize() has already initialized WordPressAuthenticator.
27-
/// See AuthenticationManager.hasInitializedAuthenticator and restoreWordPressSite().
28-
ServiceLocator.stores.initializeAfterDependenciesAreInitialized()
29-
3024
// Scene-scoped initializations that need UI
3125
setupNoticePresenter()
3226
setupUniversalLinkRouter()

WooCommerce/Classes/ViewRelated/AppCoordinator.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ private extension AppCoordinator {
238238

239239
/// Configures the WPAuthenticator for usage in both logged-in and logged-out states.
240240
func configureAuthenticator() {
241-
authenticationManager.initialize()
242241
authenticationManager.setLoggedOutAppSettings(loggedOutAppSettings)
243242
authenticationManager.displayAuthenticatorIfLoggedOut = { [weak self] in
244243
guard let self, self.isLoggedIn == false else { return nil }

0 commit comments

Comments
 (0)