             decoder.failWithError(error)
             return nil
         }
-        self.consumerKey = consumerKey
 
         guard let consumerSecret = decoder
             .decodeObject(of: NSString.self,


    /// hook to replace headers creation
    open var headersFactory: OAuthSwiftCredentialHeadersFactory?

    // MARK: init
    override init() {
    }

    public init(consumerKey: String, consumerSecret: String) {
        self.consumerKey = consumerKey

    }

    // MARK: attributes
    public let consumerKey: String
    public let consumerSecret: String
    open var oauthToken = ""
    open var oauthRefreshToken = ""
    open var oauthTokenSecret = ""
