Skip to content

Commit

Permalink
update GitHubProvider scope
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevera committed May 6, 2024
1 parent 4f71588 commit 6da54ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/authOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ export const authOptions: NextAuthOptions = {
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
allowDangerousEmailAccountLinking: true,
authorization: {
params: {
scope: 'read:user user:email public_repo',
},
},
}),
CredentialsProvider({
name: 'Email',
Expand Down

0 comments on commit 6da54ae

Please sign in to comment.