Skip to content

Commit 7b315a7

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
2222
coordinator.start()
2323

2424
/// IMPORTANT:
25-
/// `AppCoordinator.start()` must be called before this, so that
25+
/// `AppCoordinator` must be initialized before this, so that
2626
/// AuthenticationManager.initialize() has already initialized WordPressAuthenticator.
27-
/// See AuthenticationManager.hasInitializedAuthenticator and restoreWordPressSite().
28-
ServiceLocator.stores.initializeAfterDependenciesAreInitialized()
27+
// ServiceLocator.stores.initializeAfterDependenciesAreInitialized()
2928

3029
// Scene-scoped initializations that need UI
3130
setupNoticePresenter()

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)