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

Commit c855a43

Browse files
committed
Allows login from keychain to happen properly; missing display name for epilogue though
1 parent 0160553 commit c855a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WordPressAuthenticator/Signin/AppleAuthenticator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ private extension AppleAuthenticator {
5858
@available(iOS 13.0, *)
5959
func createWordPressComUser(appleCredentials: ASAuthorizationAppleIDCredential) {
6060
guard let identityToken = appleCredentials.identityToken,
61-
let token = String(data: identityToken, encoding: .utf8),
62-
let email = appleCredentials.email else {
61+
let token = String(data: identityToken, encoding: .utf8) else {
6362
DDLogError("Apple Authenticator: invalid Apple credentials.")
6463
return
6564
}
6665

6766
SVProgressHUD.show(withStatus: NSLocalizedString("Continuing with Apple", comment: "Shown while logging in with Apple and the app waits for the site creation process to complete."))
6867

68+
let email = appleCredentials.email ?? ""
6969
let name = fullName(from: appleCredentials.fullName)
7070

7171
updateLoginFields(email: email, fullName: name, token: token)

0 commit comments

Comments
 (0)