         }
     }
 
-    public static func firstRepo(with query: String, authToken: String, isVerbose: Bool) -> Promise<Repository> {
-        return repos(with: query, authToken: authToken, isVerbose: isVerbose).then { repos in
+    public static func firstRepo(with query: String, accessToken: String, isVerbose: Bool) -> Promise<Repository> {
+        return repos(with: query, accessToken: accessToken, isVerbose: isVerbose).then { repos in
             guard let first = repos.first else {
                 throw GitHub.Error.noPackages
             }

        return Network.dataTask(request: request, isVerbose: isVerbose)
    }

    public static func repos(with query: String, authToken: String, isVerbose: Bool) -> Promise<[Repository]> {
        let repoQuery = RepoQuery(query: query, authToken: authToken)
        return send(query: repoQuery, isVerbose: isVerbose).then { response in
            if let error = response.errors?.first {
                throw error

    """
    let variables: [String: String]
    let header: [String: String]
    init(query: String, accessToken: String) {
        self.variables = ["query": "\(query) language:Swift fork:true"]
        self.header = ["Authorization": "Bearer \(accessToken)"]
    }
}

