limit oauth scope to minimum possible: public github info for user
This commit is contained in:
parent
d08d593f69
commit
48b08d2aff
@ -142,7 +142,8 @@ export default (req, res) => NextAuth(req, res, {
|
|||||||
Providers.GitHub({
|
Providers.GitHub({
|
||||||
clientId: process.env.GITHUB_ID,
|
clientId: process.env.GITHUB_ID,
|
||||||
clientSecret: process.env.GITHUB_SECRET,
|
clientSecret: process.env.GITHUB_SECRET,
|
||||||
authorization: 'https://github.com/login/oauth/authorize?scope=read:user',
|
authorization: 'https://github.com/login/oauth/authorize',
|
||||||
|
scope: '', // read-only acces to public information
|
||||||
profile: profile => {
|
profile: profile => {
|
||||||
return {
|
return {
|
||||||
...profile,
|
...profile,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user