This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ public final class WordPressComOAuthClient: NSObject {
124124 /// - multifactorCode: Multifactor Authentication One-Time-Password. If not needed, can be nil
125125 /// - success: block to be called if authentication was successful. The OAuth2 token is passed as a parameter.
126126 /// - failure: block to be called if authentication failed. The error object is passed as a parameter.
127+ @available ( * , deprecated, message: " Here for legacy compatiblity. Use the verions with explicit `needsMultifactor` parameter. " )
127128 @objc public func authenticateWithUsername( _ username: String ,
128129 password: String ,
129130 multifactorCode: String ? ,
@@ -152,7 +153,7 @@ public final class WordPressComOAuthClient: NSObject {
152153 @objc public func authenticateWithUsername( _ username: String ,
153154 password: String ,
154155 multifactorCode: String ? ,
155- needsMultifactor: ( ( _ userID: Int , _ nonceInfo: SocialLogin2FANonceInfo ) -> Void ) ? = . none ,
156+ needsMultifactor: ( ( _ userID: Int , _ nonceInfo: SocialLogin2FANonceInfo ) -> Void ) ? ,
156157 success: @escaping ( _ authToken: String ? ) -> Void ,
157158 failure: @escaping ( _ error: NSError ) -> Void ) {
158159 var parameters : [ String : AnyObject ] = [
You can’t perform that action at this time.
0 commit comments