           completionHandler(.Failure(error!))
           return
         }
+        self.clearCache()
         completionHandler(.Success(true))
     }
   }

          return
        }
        // error will be nil if the call succeeded
        completionHandler(error)
    }
  }

  var isLoadingOAuthToken: Bool = false
  
  static let ErrorDomain = "com.error.GitHubAPIManager"

  // handler for the OAuth process
  // stored as vars since sometimes it requires a round trip to safari which
  // makes it hard to just keep a reference to it
