github-tools / github

A higher-level wrapper around the Github API. Intended for the browser.
BSD 3-Clause "New" or "Revised" License
3.6k stars 755 forks source link

Private data not returning #626

Open jobvite-github opened 4 years ago

jobvite-github commented 4 years ago

When making a call to get the authenticated user's gists, it only returns the public gists.

import GitHubAPI from 'github-api';

const getGists = (async () => {
    var gh = new GitHubAPI({
    token: 'token'
    });
    var user = gh.getUser();
    var gists = user.listGists().then( data => data );

    return gists;
})

Is this a GitHub API issue, a GitHub.JS issue, or am I missing something?