Skip to content

Commit 167aaed

Browse files
committed
Initialize authenticator before initializeAfterDependenciesAreInitialized
1 parent 56e1a54 commit 167aaed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

WooCommerce/Classes/AppDelegate.swift

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

64+
setupAnalytics(analytics)
6365
setupCocoaLumberjack()
6466
setupLibraryLogger()
6567
setupLogLevel(.verbose)
@@ -224,7 +226,7 @@ extension AppDelegate {
224226
ZendeskProvider.shared.initialize()
225227
}
226228

227-
/// Sets up the WordPress Authenticator.
229+
/// Sets up app analytics.
228230
///
229231
func setupAnalytics(_ analytics: Analytics) {
230232
analytics.initialize()

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)