Skip to content

Commit 9b2609c

Browse files
authored
change user scope in oauth
1 parent 8fccf48 commit 9b2609c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/github/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const githubAuth = (req, res) => {
4141

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

0 commit comments

Comments
 (0)