             "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

        delegate.taskWillPerformHTTPRedirection = { session, task, response, request in
            return nil
        }

        manager.session.configuration.HTTPAdditionalHeaders = [
            "User-Agent": "niantic"
        ]

        Alamofire.request(.GET, PGoEndpoint.LoginInfo)
            .responseJSON { response in
                if let JSON = response.result.value {

    public var manager: Manager
    
    public init() {
        manager = Manager.sharedInstance
    }
    
    private func getTicket(lt: String, execution: String) {
        print("Requesting ticket...")
        
