Skip to content

Commit

Permalink
Remove NSObject-SafeExpectations dependency from WordPressAuthentific…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
kean committed Jul 13, 2024
1 parent 9581b05 commit d5dbb5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ enum XcodeSupport {
"WordPressShared",
"WordPressUI",
.product(name: "Gridicons", package: "Gridicons-iOS"),
.product(name: "NSObject-SafeExpectations", package: "NSObject-SafeExpectations"),
.product(name: "NSURL+IDN", package: "NSURL-IDN"),
.product(name: "SVProgressHUD", package: "SVProgressHUD"),
.product(name: "WordPressKit", package: "WordPressKit-iOS"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import AuthenticationServices
import NSURL_IDN
import NSObject_SafeExpectations
import UIKit
import WordPressShared
import WordPressKit
Expand Down Expand Up @@ -409,12 +408,12 @@ import WordPressKit
return false
}

guard let authToken = queryDictionary.string(forKey: "token") else {
guard let authToken = queryDictionary["token"] as? String else {
WPAuthenticatorLogError("Magic link error: we couldn't retrieve the authentication token from the sign-in URL.")
return false
}

guard let flowRawValue = queryDictionary.string(forKey: "flow") else {
guard let flowRawValue = queryDictionary["flow"] as? String else {
WPAuthenticatorLogError("Magic link error: we couldn't retrieve the flow from the sign-in URL.")
return false
}
Expand Down

0 comments on commit d5dbb5d

Please sign in to comment.