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

pull/5698/head
Nicolas Giard 3 years ago
parent 64e592ada4
commit 0385a9b647

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

@ -12516,7 +12516,7 @@ node-fetch@1.7.3:
encoding "^0.1.11"
is-stream "^1.0.1"
node-fetch@^2.6.7:
node-fetch@^2.6.1, node-fetch@^2.6.7:
version "2.6.7"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
@ -13410,7 +13410,7 @@ passport-oauth2@1.6.1, passport-oauth2@^1.6.0:
uid2 "0.0.x"
utils-merge "1.x.x"
passport-oauth2@1.x.x, passport-oauth2@^1.2.0, passport-oauth2@^1.4.0, passport-oauth2@^1.5.0:
passport-oauth2@1.x.x, 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==
@ -13472,12 +13472,13 @@ passport-strategy@1.x.x, passport-strategy@^1.0.0:
resolved "https://registry.yarnpkg.com/passport-strategy/-/passport-strategy-1.0.0.tgz#b5539aa8fc225a3d1ad179476ddf236b440f52e4"
integrity sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=
passport-twitch-oauth@1.0.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-strategy@2.2.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"
passport@0.5.2:
version "0.5.2"

Loading…
Cancel
Save