Using GithubAPI + NextAuth Github Provider to access a User's repo information.
I am building an app where will allow users to login with Github and view their Github accounts data ( Repos and issues ). A good example would be vercel or netlify, which accesses a user's public repos.
I currently have Github Auth Configured...
and when attempting to print out the result...
...I get the message
I am not sure where I am going wrong. I would attempt to hit the
I would appreciate any help and direction others could provide. Thanks !
I currently have Github Auth Configured...
and when attempting to print out the result...
...I get the message
"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/reference/users#get-the-authenticated-user"}I am not sure where I am going wrong. I would attempt to hit the
api.github.com/users/{username} endpoint, but I do not have access to the user's {username}.I would appreciate any help and direction others could provide. Thanks !