fix: resolve Twitch OAuth API (#1561)
This commit is contained in:
parent
741208911b
commit
a6dd93746e
@ -141,7 +141,7 @@
|
|||||||
"passport-okta-oauth": "0.0.1",
|
"passport-okta-oauth": "0.0.1",
|
||||||
"passport-openidconnect": "0.0.2",
|
"passport-openidconnect": "0.0.2",
|
||||||
"passport-saml": "1.3.3",
|
"passport-saml": "1.3.3",
|
||||||
"passport-twitch": "1.0.3",
|
"passport-twitch-oauth": "1.0.0",
|
||||||
"pem-jwk": "2.0.0",
|
"pem-jwk": "2.0.0",
|
||||||
"pg": "7.18.2",
|
"pg": "7.18.2",
|
||||||
"pg-hstore": "2.3.3",
|
"pg-hstore": "2.3.3",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Twitch Account
|
// Twitch Account
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
||||||
const TwitchStrategy = require('passport-twitch').Strategy
|
const TwitchStrategy = require('passport-twitch-oauth').Strategy
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -19,7 +19,7 @@ module.exports = {
|
|||||||
const user = await WIKI.models.users.processProfile({
|
const user = await WIKI.models.users.processProfile({
|
||||||
profile: {
|
profile: {
|
||||||
...profile,
|
...profile,
|
||||||
picture: _.get(profile, '_json.logo', '')
|
picture: _.get(profile, 'avatar', '')
|
||||||
},
|
},
|
||||||
providerKey: 'twitch'
|
providerKey: 'twitch'
|
||||||
})
|
})
|
||||||
|
@ -8,7 +8,7 @@ website: https://dev.twitch.tv/docs/authentication/
|
|||||||
isAvailable: true
|
isAvailable: true
|
||||||
useForm: false
|
useForm: false
|
||||||
scopes:
|
scopes:
|
||||||
- user_read
|
- 'user:read:email'
|
||||||
props:
|
props:
|
||||||
clientId:
|
clientId:
|
||||||
type: String
|
type: String
|
||||||
|
Loading…
Reference in New Issue
Block a user