@@ -13,14 +13,14 @@ extension AccountServiceRemoteREST {
1313 /// - Parameters:
1414 /// - service The name of the social service.
1515 /// - token The OpenID Connect (JWT) ID token identifying the user on the social service.
16- /// - appleConnectParameters Dictionary containing endpoint parameters specific to connecting to Apple service.
16+ /// - connectParameters Dictionary containing additional endpoint parameters. Currently only used for the Apple service.
1717 /// - oAuthClientID The WPCOM REST API client ID.
1818 /// - oAuthClientSecret The WPCOM REST API client secret.
1919 /// - success The block that will be executed on success.
2020 /// - failure The block that will be executed on failure.
2121 public func connectToSocialService( _ service: SocialServiceName ,
2222 serviceIDToken token: String ,
23- appleConnectParameters : [ String : AnyObject ] ? = nil ,
23+ connectParameters : [ String : AnyObject ] ? = nil ,
2424 oAuthClientID: String ,
2525 oAuthClientSecret: String ,
2626 success: @escaping ( ( ) -> Void ) ,
@@ -33,10 +33,9 @@ extension AccountServiceRemoteREST {
3333 " service " : service. rawValue,
3434 " id_token " : token,
3535 ] as [ String : AnyObject ]
36-
37- // Append Apple specific parameters
38- if service == . apple, let appleConnectParameters = appleConnectParameters {
39- params. merge ( appleConnectParameters, uniquingKeysWith: { ( current, _) in current } )
36+
37+ if let connectParameters = connectParameters {
38+ params. merge ( connectParameters, uniquingKeysWith: { ( current, _) in current } )
4039 }
4140
4241 wordPressComRestApi. POST ( path, parameters: params, success: { ( responseObject, httpResponse) in
0 commit comments