fix: update to working twitch passport strategy (#5279)
This commit is contained in:
@@ -150,7 +150,7 @@
|
|||||||
"passport-openidconnect": "0.0.2",
|
"passport-openidconnect": "0.0.2",
|
||||||
"passport-saml": "3.2.1",
|
"passport-saml": "3.2.1",
|
||||||
"passport-slack-oauth2": "1.1.1",
|
"passport-slack-oauth2": "1.1.1",
|
||||||
"passport-twitch-oauth": "1.0.0",
|
"passport-twitch-strategy": "2.2.0",
|
||||||
"pem-jwk": "2.0.0",
|
"pem-jwk": "2.0.0",
|
||||||
"pg": "8.4.1",
|
"pg": "8.4.1",
|
||||||
"pg-hstore": "2.3.4",
|
"pg-hstore": "2.3.4",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// Twitch Account
|
// Twitch Account
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
||||||
const TwitchStrategy = require('passport-twitch-oauth').Strategy
|
const TwitchStrategy = require('passport-twitch-strategy').Strategy
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -21,7 +21,7 @@ module.exports = {
|
|||||||
providerKey: req.params.strategy,
|
providerKey: req.params.strategy,
|
||||||
profile: {
|
profile: {
|
||||||
...profile,
|
...profile,
|
||||||
picture: _.get(profile, 'avatar', '')
|
picture: _.get(profile, 'profile_image_url', '')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
cb(null, user)
|
cb(null, user)
|
||||||
|
|||||||
Reference in New Issue
Block a user