Unverified Commit 9b40d602 authored by Erik Bigler's avatar Erik Bigler Committed by GitHub

fix: update to working twitch passport strategy (#5279)

parent 24dbc097
...@@ -150,7 +150,7 @@ ...@@ -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 @@ ...@@ -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 = { ...@@ -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)
......
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment