I’m trying to authenticate my bot, I’m using the tmi.js library.
I get my token from https://id.twitch.tv/oauth2/token and I ask for the chat:read and chat:edit scopes.
This returns ok as it should.
I move on to validate this token via https://id.twitch.tv/oauth2/validate
This again returns ok as it should, so the access token should be good right?
I pass the token to tmi.js with oauth: prepended to it like you’re supposed to. I have logged this value every step of the way to make sure it arrives correctly, which it does, so there MUST be something wrong with the token during my validation process.
The issue is not with the connection options in tmi.js because when I pass an oauth token granted by the generator it connects just fine.
I want to move away from the generated token as I need the experience, and will need this for more things than tmi.js can provide for me along the line.
Any help with what could possibly be going wrong will be hugely appreciated.