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

This commit is contained in:
Erik Bigler
2022-05-13 15:20:09 -05:00
committed by GitHub
parent 24dbc097cb
commit 9b40d60261
3 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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)

BIN
yarn.lock

Binary file not shown.