Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 5f8dc90

Browse files
authored
Merge pull request #128 from wordpress-mobile/fix/12434-siwa_epilogue_user_info
[SIWA] Sync account with host app for existing accounts
2 parents 299c337 + 608b3d6 commit 5f8dc90

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressAuthenticator"
3-
s.version = "1.8.1-beta.1"
3+
s.version = "1.8.1-beta.2"
44
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
55

66
s.description = <<-DESC

WordPressAuthenticator/Signin/AppleAuthenticator.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,13 @@ private extension AppleAuthenticator {
8484
let wpcom = WordPressComCredentials(authToken: wpcomToken, isJetpackLogin: false, multifactor: false, siteURL: self?.loginFields.siteAddress ?? "")
8585
let credentials = AuthenticatorCredentials(wpcom: wpcom)
8686

87-
self?.authenticationDelegate.createdWordPressComAccount(username: wpcomUsername, authToken: wpcomToken)
88-
8987
if accountCreated {
88+
self?.authenticationDelegate.createdWordPressComAccount(username: wpcomUsername, authToken: wpcomToken)
9089
self?.signupSuccessful(with: credentials)
9190
} else {
92-
self?.loginSuccessful(with: credentials)
91+
self?.authenticationDelegate.sync(credentials: credentials) {
92+
self?.loginSuccessful(with: credentials)
93+
}
9394
}
9495

9596
}, failure: { [weak self] error in

0 commit comments

Comments
 (0)