             failure?(OAuthSwiftError.encodingError(urlString: urlString))
             return nil
         }
-        
-        // TODO: PKCE - extra parameter
-        var pkceParameters = Parameters()
-        if isPKCE {
-            pkceParameters["code_challenge"] = self.codeChallenge
-            pkceParameters["code_challenge_method"] = self.codeChallengeMethod
-        }
-        
-        // TODO: PKCE - inject extra pkce parameters
-        return authorize(withCallbackURL: url, scope: scope, state: state, parameters: parameters + pkceParameters, headers: headers, success: success, failure: failure)
+        return authorize(withCallbackURL: url, scope: scope, state: state, parameters: parameters, headers: headers, success: success, failure: failure)
     }
 
     open func postOAuthAccessTokenWithRequestToken(byCode code: String, callbackURL: URL?, headers: OAuthSwift.Headers? = nil, success: @escaping TokenSuccessHandler, failure: FailureHandler?) -> OAuthSwiftRequestHandle? {

        parameters["code"] = code
        parameters["grant_type"] = "authorization_code"
        
        // TODO: PKCE - extra parameter
        if isPKCE {
            parameters["code_verifier"] = self.codeVerifier // codeVerifier is an optional. Setting a dictionary entry with nil will remove that dictionary entry. I.e. setting a dictionary entry with an unset optional has no effect.
        }
        
        if let callbackURL = callbackURL {

//  Copyright (c) 2014 Dongri Jin. All rights reserved.
//

import Foundation

open class OAuth2Swift: OAuthSwift {
