github icon indicating copy to clipboard operation
github copied to clipboard

Private data not returning

Open jobvite-github opened this issue 5 years ago • 0 comments

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?

jobvite-github avatar Aug 31 '20 21:08 jobvite-github