Unable to fetch private repositories even after authentication

Hi all,

I am trying to integrate Github with Salesforce. I have created a Oauth settings in github and used those details in Salesforce. I have set the scope as “repo,user”, and tried fetching the repositories by accessing the url, https://api.github.com/users/vinaytejnissankula/repos.

I tried with multiple parameters like, type, visibility still the response is just returning the public repos.
Please let me know if I am missing something here.

Thanks in advance.

Regards
Vinay Tej

@vinaytejnissankula the rest API reference documentation states

Lists public repositories for the specified user

So your results are correct when using this api

@byrneh Thanks for your response. My bad I have missed that.
I was able to fetch all my private repos when I use using
https://api.github.com/search/repositories?q=is%3Aprivate+user%3Avinaytejnissankula