     
     public func getTokenFromDevice(code: DeviceCode?, completionHandler: ProgressCompletionHandler?) {
         guard
-            let clientID = clientID,
-            let clientSecret = clientSecret,
+            let clientID = self.clientID,
+            let clientSecret = self.clientSecret,
             let deviceCode = code else {
                 completionHandler?(.fail(0))
                 return

            return
        }
        request.httpBody = body
        
        for i in 1...deviceCode.expires_in {
            self.sendReques(request: request, count: i, completionHandler: completionHandler)
            sleep(1)
        }
        
    }
    
    private func sendReques(request:URLRequest, count:Int, completionHandler: ProgressCompletionHandler?) {

    private var redirectURI: String?
    private var baseURL: String?
    private var APIBaseURL: String?
    private var isWaitingToToken: Bool = false
    
    // Keys
    let accessTokenKey = "accessToken"
