Commit 0385a9b6 authored by Nicolas Giard's avatar Nicolas Giard

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

parent 64e592ad
......@@ -145,7 +145,7 @@
"passport-openidconnect": "0.1.1",
"passport-saml": "3.2.1",
"passport-slack-oauth2": "1.1.1",
"passport-twitch-oauth": "1.0.0",
"passport-twitch-strategy": "2.2.0",
"pem-jwk": "2.0.0",
"pg": "8.7.3",
"pg-hstore": "2.3.4",
......
......@@ -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)
......
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