Skip to content

Commit e0de7f5

Browse files
author
joeltaylor
committed
Lower github scope to just user:email
1 parent b6bb832 commit e0de7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/news.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ passport.use(new GitHubStrategy({
3434
clientSecret: process.env.GH_CLIENT_SECRET,
3535
callbackURL: (process.env.NODE_ENV === 'production' ?
3636
"http://javascript.preschool.io/news/auth/github/callback" : "http://localhost:3000/news/auth/github/callback"),
37-
scope: ['user', 'user:email']
37+
scope: ['user:email']
3838
},
3939
function(accessToken, refreshToken, profile, done) {
4040
// asynchronous verification, for effect...

0 commit comments

Comments
 (0)