Not sure if this is the right venue for this, but I’m trying to build a react native app that has twitch video and chat embedded in it. The only way that I currently know how to do this is using the embedded chat/video inside of a WebView.
The issue with this approach is that in order for the user to post chat msgs, it seems like login must happen inside the WebView, and that I have no way of doing this with the app’s react native UI. Login inside a WebView would be unacceptable because I don’t have control over the UI. I thought about trying to have the user enter in their username/password inside the app, and then trying to authenticate with JS request inside the WebView, but that request requires a valid CSRF token, and I don’t know how to obtain one easily. I also don’t like the idea of storing the user’s Twitch password in my app…
Is there some way to be able to use the API credentials to authenticate for embedded chat?