Skip to content

Commit 176f54a

Browse files
committed
AuthenticationManager: Wiring StoresManager's API
1 parent 076bcd6 commit 176f54a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate {
151151
fatalError("Self Hosted sites are not supported. Please review the Authenticator settings!")
152152
}
153153

154-
let credentials = Credentials(username: username, authToken: authToken)
155-
StoresManager.shared.authenticate(credentials: credentials, onCompletion: onCompletion)
154+
StoresManager.shared
155+
.authenticate(credentials: .init(username: username, authToken: authToken))
156+
.synchronizeEntities(onCompletion: onCompletion)
156157
}
157158

158159
/// Tracks a given Analytics Event.

0 commit comments

Comments
 (0)