Skip to content

Commit

Permalink
change user scope in oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxada authored Oct 13, 2024
1 parent 8fccf48 commit 9b2609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/github/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const githubAuth = (req, res) => {

res.send({ authorizationLink: url });
} else {
const scopes = ["user", "public_repo"];
const scopes = ["read:user", "user:email", "public_repo"];
const url = `https://github.com/login/oauth/authorize?client_id=${
process.env.GITHUB_AUTH_CLIENT_ID
}&scope=${scopes.join(",")}`;
Expand Down

0 comments on commit 9b2609c

Please sign in to comment.