Per the GitHub API docs, I am requesting the repo scope which gives access to private repositories.
The user is presented with the following dialog, which also ment
Screenshot
https://api.github.com/user/repos?access_token=#################################
this url gives all the public and private repositories, To get the token use this
link https://github.com/settings/tokens
Make sure you mark all the ticks given in the scope section