Remove Github OAuth2 field - scope
Remove the optional and invalid `scope` properties of "github-login" and "github-link" passport strategies. This will result in only retrieval of the public data as required. This is the current behavior. No breaking changes.
This commit is contained in:
@ -144,7 +144,6 @@ export default {
|
|||||||
failureRedirect: failureRedirect,
|
failureRedirect: failureRedirect,
|
||||||
clientID: process.env.GITHUB_ID,
|
clientID: process.env.GITHUB_ID,
|
||||||
clientSecret: process.env.GITHUB_SECRET,
|
clientSecret: process.env.GITHUB_SECRET,
|
||||||
scope: ['email'],
|
|
||||||
failureFlash: true
|
failureFlash: true
|
||||||
},
|
},
|
||||||
'github-link': {
|
'github-link': {
|
||||||
@ -158,7 +157,6 @@ export default {
|
|||||||
failureRedirect: linkFailureRedirect,
|
failureRedirect: linkFailureRedirect,
|
||||||
clientID: process.env.GITHUB_ID,
|
clientID: process.env.GITHUB_ID,
|
||||||
clientSecret: process.env.GITHUB_SECRET,
|
clientSecret: process.env.GITHUB_SECRET,
|
||||||
scope: ['email'],
|
|
||||||
link: true,
|
link: true,
|
||||||
failureFlash: true,
|
failureFlash: true,
|
||||||
successFlash: [ 'We\'ve updated your profile based ',
|
successFlash: [ 'We\'ve updated your profile based ',
|
||||||
|
Reference in New Issue
Block a user