             "grant_type": "refresh_token",
             "code": ticket
         ]
+        
+        // Remove "niantic" from the User-Agent
+        manager.session.configuration.HTTPAdditionalHeaders = [:]
+        
+        // Clean cookies, credit to github.com/aipeople
+        if let cookies = manager.session.configuration.HTTPCookieStorage?.cookies {
+            for cookie in cookies {
+                manager.session.configuration.HTTPCookieStorage?.deleteCookie(cookie)
+            }
+        }
         
         Alamofire.request(.POST, PGoEndpoint.LoginOAuth, parameters: parameters)
             .responseString { response in

    public var manager: Manager
    
    public init() {
        let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
        manager = Alamofire.Manager(configuration: configuration)
    }

    private func getTicket(lt: String, execution: String) {
        print("Requesting ticket...")
        

                if let location = response.response!.allHeaderFields["Location"] as? String {
                    let ticketRange = location.rangeOfString("?ticket=")
                    let ticket = String(location.characters.suffixFrom(ticketRange!.endIndex))
                    
                    self.loginOAuth(ticket)
                } else {
                    self.delegate?.didNotReceiveAuth()
