I’ve been transitioning a python chat bot / flask app away from the community key generator for the past week and it’s been one big headache. None of the oauth helper libraries seem to play nice with twitch.
I finally got the oauth flow going without any error by forgoing any helper module just doing a raw redirect with everything just written straight into a string then readign the code and doing a post request to get the actual key.
It was working without any errors but would refuse to give me any scopes back. I was using ‘+’ for spaces and I tried encoding the url and not encoding the url diffrent scopes, 1 scope, nothing worked.
I finally just put the &scope= at the very end of the string after the state and it suddenly started working. any insights in this? I can post the code but honestly I need to rewrite it so it’s not a giant example of bad coding practices.