Skip to content

is that possible to use other token than those from twitchtokengenerator.com ? #408

Answered by chillymosh
loupzeur asked this question in Questions
Discussion options

You must be logged in to vote

I converted this to a discussion since it is not an issue with the library.

You are generating an App Token, these do not use scopes. You need to generate a User Oauth Flow token which use scopes and are associated to a user.
https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#authorization-code-grant-flow

You should also be using aiohttp ideally as this is an async framework and requests is blocking.

  • You could also use the Twitch CLI to generate the initial token and then just handle refreshing yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loupzeur
Comment options

Answer selected by loupzeur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #407 on June 17, 2023 20:29.