Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate Your Device #945

Open
JiminyKroket opened this issue Apr 25, 2024 · 2 comments
Open

Activate Your Device #945

JiminyKroket opened this issue Apr 25, 2024 · 2 comments

Comments

@JiminyKroket
Copy link

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants