                 return
         }
         
-        let urlString = "https://trakt.tv/oauth/token"
+        let urlString = "https://\(baseURL!)/oauth/token"
         let url = URL(string: urlString)
         guard var request = mutableRequestForURL(url, authorization: false, HTTPMethod: .POST) else {
             completionHandler?(.fail)

    }
    
    public func mutableRequest(forPath path: String, withQuery query: [String: String], isAuthorized authorized: Bool, withHTTPMethod httpMethod: Method) -> URLRequest? {
        let urlString = "https://api.trakt.tv/" + path
        guard var components = URLComponents(string: urlString) else { return nil }
        
        if query.isEmpty == false {

            return
        }
        
        let urlString = "https://\(baseURL!)/oauth/token"
        let url = URL(string: urlString)
        guard var request = mutableRequestForURL(url, authorization: false, HTTPMethod: .POST) else {
            completionHandler(.fail)
