![]() So, you would collect the access token and refresh token into a storage system (flat file or database) When the token expires you then use the refresh token to get a new access token (and possibly a new refresh token) ![]() You can then use that Access Token to access Twitch until the token expires. You then exchange the ?code for an access token and a refresh token. The user then returns to your website with a ?code in the URL ![]() That link will specify the permissions (aka scopes) that you need User oAuth will involve sending the user to a website you control, to click a link and choose to allow (or disallow) access to the account. Twitch uses oAuth to Grant access to between a user account and a ClientID. (As you have generated an implicit auth token) And you might not notice the downtime in your system until you’ve been down for a while… So currently, I just got a string which I pasted into the code as constant.Īnd Every 60 days you’ll need to manually do it all over again. Thanks a lot for any answers, because I’m really confused. 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? 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. 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. **1)** Send the user you want to authenticate to your registered redirect URI. client secret.īut all of the authentication flows, for example the OAuth authorization code flow revolve around the redirect_uri and scope query-string parameters. 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’ve read the docs several times already, I’ve successfully registered my app as chatbot and got the client-id. However, I have issues with authenticating to twitch api. I managed to connect to the chat room through IRC (using tmi.js). ![]() Hello, I’m using my own chatbot, running in node.js. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |