That is a valid solution yes
Twitch oAuth only supports web based URI’s at time of writing
You could have a page on your server that displays something for the user to copy/paste to your game.
Or you could have your game start a temporary webserver to capture oAuth with (which is what the CLI does)
To read chat needs no Auth
To write chat needs auth
To read/write polls you’ll need a user token
OR
You go read chat only and have the game announce the polls and then just read chat for votes.
Correct.
TLDR:
either
- go Chat read only. and use in game to announce polls and chat spam to capture votes
- have a user accounts system, and the users game logs into your server and looks up a linked twitch account. This can also mean that your server does all the hard work and sends minimal data to the game (the poll result only instead of each vote for example if using chat spam)
- have the user copy/paste something from a web page to your game (likely an implict auth user token
- have a webpage that redirects to the game for the game to capture the generated implicit auth token
- start a temproary webserver inside UE5 to capture the generated implict auth token (like how the Twitch CLI does it)
Thats just a few of the possible options
Edit there is also the Game Engine plugin beta to apply for Twitch Game Engine Plugins Closed Beta Application to apply for that does all the things you need for you.