Twitch provider scope customisation #2810
-
Hi! I am trying to set a specific scope for the Twitch provider, but I keep getting a 401 with "Missing scope: user:read:follows" when I use the I thought this is how I was supposed to set scopes for this specific provider, but I am wondering if I might be doing something wrong: import TwitchProvider from `next-auth/providers/twitch`
...
providers: [
TwitchProvider({
clientId: process.env.TWITCH_CLIENT_ID,
clientSecret: process.env.TWITCH_CLIENT_SECRET,
scope: 'user:read:follows'
})
]
... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Using v4 I assume. Have a read of these: https://next-auth.js.org/getting-started/upgrade-v4#providers TLDR; import TwitchProvider from `next-auth/providers/twitch`
...
providers: [
TwitchProvider({
clientId: process.env.TWITCH_CLIENT_ID,
clientSecret: process.env.TWITCH_CLIENT_SECRET,
authorization: {
params: {
scope: 'user:read:follows'
}
}
})
]
... |
Beta Was this translation helpful? Give feedback.
Using v4 I assume. Have a read of these:
https://next-auth.js.org/getting-started/upgrade-v4#providers
#2411 (comment)
https://next-auth.js.org/configuration/providers/oauth-provider#options
TLDR;