Skip to content

Commit

Permalink
fix: resolve Twitch OAuth API (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
gh0stalker authored Mar 7, 2020
1 parent 7412089 commit a6dd937
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"passport-okta-oauth": "0.0.1",
"passport-openidconnect": "0.0.2",
"passport-saml": "1.3.3",
"passport-twitch": "1.0.3",
"passport-twitch-oauth": "1.0.0",
"pem-jwk": "2.0.0",
"pg": "7.18.2",
"pg-hstore": "2.3.3",
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').Strategy
const TwitchStrategy = require('passport-twitch-oauth').Strategy
const _ = require('lodash')

module.exports = {
Expand All @@ -19,7 +19,7 @@ module.exports = {
const user = await WIKI.models.users.processProfile({
profile: {
...profile,
picture: _.get(profile, '_json.logo', '')
picture: _.get(profile, 'avatar', '')
},
providerKey: 'twitch'
})
Expand Down
2 changes: 1 addition & 1 deletion server/modules/authentication/twitch/definition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ website: https://dev.twitch.tv/docs/authentication/
isAvailable: true
useForm: false
scopes:
- user_read
- 'user:read:email'
props:
clientId:
type: String
Expand Down

0 comments on commit a6dd937

Please sign in to comment.