Can Github App Query Private Repos from Client?

So far, what I understand is that I’m supposed to obtain an installation token for a user and perform server to server requests using that. But when I try to use that token from the client, I get 

HttpError: Resource not accessible by integration

When I use an OAuth token, I seem to only get public repos/branches. Is there any way to get private repos/branches from a browser?

Figured it out: I could get the private repos with the oauth token as shown in I just has to up the per_page to 100 (the default is 30 in the JS REST API).

1 Like