I'm trying to implement an authentication through twitch's oauth the more I'm reading their documentation, the more I'm wondering if the authentication really has to be on the server side? https://dev.twitch.tv/docs/authentication/getting-tokens-oauth
How I wanna proceed:
- Ask the user to authenticate through twitch
- To send the user's informations (id, login, display_name) to the backend, when connecting to a websocket server (to keep it in a behavior subject only for the duration of a game)
- When the user sends an event to the ws server, I wanna recognise him with these informations (probably mostly his id)
=> I'd also like to use the user's access_token / refresh_token to "refresh" his session (if needed?? not sure about this)