Skip to content

Commit

Permalink
fix: update to working twitch passport strategy (requarks#5279)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggz authored May 13, 2022
1 parent b9a3c63 commit 027ef81
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"passport-openidconnect": "0.0.2",
"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.4.1",
"pg-hstore": "2.3.4",
Expand Down
4 changes: 2 additions & 2 deletions server/modules/authentication/twitch/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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)
Expand Down
13 changes: 7 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14697,7 +14697,7 @@ [email protected], passport-oauth2@^1.6.0:
uid2 "0.0.x"
utils-merge "1.x.x"

[email protected], passport-oauth2@^1.2.0, passport-oauth2@^1.4.0, passport-oauth2@^1.5.0:
[email protected], passport-oauth2@^1.4.0, passport-oauth2@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/passport-oauth2/-/passport-oauth2-1.5.0.tgz#64babbb54ac46a4dcab35e7f266ed5294e3c4108"
integrity sha512-kqBt6vR/5VlCK8iCx1/KpY42kQ+NEHZwsSyt4Y6STiNjU+wWICG1i8ucc1FapXDGO15C5O5VZz7+7vRzrDPXXQ==
Expand Down Expand Up @@ -14761,12 +14761,13 @@ [email protected], passport-strategy@^1.0.0:
resolved "https://registry.yarnpkg.com/passport-strategy/-/passport-strategy-1.0.0.tgz#b5539aa8fc225a3d1ad179476ddf236b440f52e4"
integrity sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=

passport-twitch-[email protected].0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/passport-twitch-oauth/-/passport-twitch-oauth-1.0.0.tgz#8ba20658ffe18dbeab2201547e0a2e6a459adaf1"
integrity sha512-sX/HZgRP320CICi+ZQn0MpKV8PiVcxuEOaLywOE2EiXQkkUm4glTgBbz9bsr7Ws7985fFmP+LgLIe0/HtMGucw==
passport-twitch-[email protected].0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/passport-twitch-strategy/-/passport-twitch-strategy-2.2.0.tgz#8a9d78ef478de92d1164fa8d194ee76ff551e0f1"
integrity sha512-PjESpFVnJk6GIX2EOtkuyk01K81ACDG8IiLJu6yOtOyaMti24/afMtqBcqDrsKqz0RHrx206AfWcI6Q4Tvy4OQ==
dependencies:
passport-oauth2 "^1.2.0"
node-fetch "^2.6.1"
passport-oauth2 "^1.5.0"

[email protected], passport@^0.4.1:
version "0.4.1"
Expand Down

0 comments on commit 027ef81

Please sign in to comment.