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 10 additions and 9 deletions

View File

@@ -4,7 +4,7 @@
// Twitch Account
// ------------------------------------
const TwitchStrategy = require('passport-twitch-oauth').Strategy
const TwitchStrategy = require('passport-twitch-strategy').Strategy
const _ = require('lodash')
module.exports = {
@@ -21,7 +21,7 @@ module.exports = {
providerKey: req.params.strategy,
profile: {
...profile,
picture: _.get(profile, 'avatar', '')
picture: _.get(profile, 'profile_image_url', '')
}
})
cb(null, user)