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...
// auth.ts providers: [ GithubProvider({ clientId: env.GITHUB_CLIENT_ID, clientSecret: env.GITHUB_CLIENT_SECRET, // Notice the scope of user here authorization: {params: {scope: 'user'}} })
// auth.ts providers: [ GithubProvider({ clientId: env.GITHUB_CLIENT_ID, clientSecret: env.GITHUB_CLIENT_SECRET, // Notice the scope of user here authorization: {params: {scope: 'user'}} })