twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
72 stars 7 forks source link

Activate Your Device #945

Open JiminyKroket opened 2 months ago

JiminyKroket commented 2 months ago

Brief description "Activate" button at https://www.twitch.tv/activate?device-code=WJXFWNYT leads to malformed URL How to reproduce Install Twitch SDK to Unity project. Follow Twitch SDK documentation for getting to

Application.OpenURL($"{AuthInfoTask.MaybeResult.Uri}");

Click "Activate" on opened webpage Expected behavior Twitch redirects user to a valid URL with properly formatted scopes so they can authorize the bot Screenshots Site that opens with Application.OpenURL ("Activate" site with broken button)

https://cdn.discordapp.com/attachments/1050160008786092053/1233153024516689951/image.png?ex=662c0ebf&is=662abd3f&hm=111053d790b37a05c5a6c0a57a98749322ef6d7c405986a85a49ec1572938ef3&

Site Twitch redirects me to after clicking "Activate" (The problem URL)

https://cdn.discordapp.com/attachments/1050160008786092053/1233147386088394802/image.png?ex=662c097f&is=662ab7ff&hm=f800c46dac5258c68b4f06c3e36e08ed94d7e222c0b74a5e899ed95d0089ea52&

Manually Edited URL site (The URL that SHOULD be redirected to) https://cdn.discordapp.com/attachments/1050160008786092053/1233148117034078218/image.png?ex=662c0a2d&is=662ab8ad&hm=104dafb18dd65726e70a3a933bc2cfb5d173c1d4eda9b2ea60e3b2d75bf6c878&

Additional context or questions I tried so hard to go the "legit" route with doing a game integration for Twitch but the documentation is horrific and wrong. Then once you finally figure out how to use any of the Twitch SDK, you run into backend problems that you can do nothing about. The redirect URL provided by Twitch when clicking "Activate" isn't editable by me with code. I use Twitch SDK to get the scopes, and do all of the authentication. I am honestly at a point that it doesn't feel worth trying to fix all of this when I can just have the users do this myself. Like if its going to be a whole circus for someone playing my game to authorize the bot even using the Twitch SDK I may as well just use the old system I know that takes the same, if not less, interaction from the player.

Wissididom commented 2 months ago

You might want to upload the image links to github, because discord attachment links might expire after a day outside of Discord. See this post from a Discord staff: image

JiminyKroket commented 2 months ago

Thank you for informing me about being able to upload here as well as the potential they would be removed.

Site that opens with Application.OpenURL ("Activate" site with broken button) scopeissue4

Site Twitch redirects me to after clicking "Activate" (The problem URL) scopeissue2

Manually Edited URL site (The URL that SHOULD be redirected to) scopeissue3