issork / gift

Godot IRC For Twitch addon
MIT License
150 stars 23 forks source link

Hangs on Token Request #34

Closed JFurness1 closed 10 months ago

JFurness1 commented 10 months ago

I have created the auth.txt file and the Example.tscn pops up my browser to a Twitch redirect at https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=REDACTED&redirect_uri=http://localhost:18297&scope=chat%3Aedit%20chat%3Aread%20moderator%3Aread%3Afollowers which continues to https://twitchtokengenerator.com/?error=redirect_mismatch&error_description=Parameter+redirect_uri+does+not+match+registered+URI, which doesn't look a happy URL.

From here, I can't tell if it's me making a mistake, or something else wrong. The web page asks me if I want to make a bot or custom token as usual. I see no interaction on the page that logs the example project bot in. The print log shows Waiting for user to login. and will go no further.

Apologies if this is a trivial mistake my end, I'm a little stuck at how to proceed.

issork commented 10 months ago

Your redirect URL in your Twitch developer console has to be exactly http://localhost:18297

image

If that does not work, let me know.

JFurness1 commented 10 months ago

Got it. Thanks for the quick reply! That sorted the problem. Thanks for helping me out.

It might be nice for simpletons like myself to expand the comments on lines 20 and 21 to briefly cover that step and prompt it if the scene appears to be hanging. I now understand the message in the README about this step, but it wasn't clear to me from that alone. Being poked towards the developer console was useful for me.

Thanks again!