Hello, I’m using my own chatbot, running in node.js. I managed to connect to the chat room through IRC (using tmi.js). However, I have issues with authenticating to twitch api. I’ve read the docs several times already, I’ve successfully registered my app as chatbot and got the client-id.
However the issue is, I can’t really understand what’s the right way to authenticate to Twitch API, when the only twitch account I’ll be using in my node.js server (it’s not really an app, just a server doing requests and reacting to messages) is my own - where I have moderator role in the chatroom I’m connecting to. I understand that I need: 1. access token 2. client id and sometimes also 3. client secret.
But all of the authentication flows, for example the OAuth authorization code flow revolve around the redirect_uri
and scope
query-string parameters. I don’t understand this:
**1)** Send the user you want to authenticate to your registered redirect URI. Then, an authorization page will ask the user to sign up or log into Twitch and allow the user to choose whether to authorize your application/identity system.
why do I have to specify some redirect_uri, when I don’t have any frontend? I don’t want to authenticate any other users, just my bot’s twitch account. And the next thing is specifying scopes - do I really have to specify all the scopes? What should I do when I just want to have access to every “scopes” (permissions) I have?
Thanks a lot for any answers, because I’m really confused.