Okay,
so I tried to change some things. For example downgrading to kraken API getting credentials and stuff from the kraken API(https://api.twitch.tv/kraken/oauth2/token?, …).
I still get the same error like mentioned above.
Step 2) Exchange the returned code for a access token aka auth token (they are one and the same)
What do you excactly mean with that?
Currently I:
- Send my user to auth https://api.twitch.tv/kraken/oauth2/authorize?
- Get the code from the URL Parameters and requesting tokens https://api.twitch.tv/kraken/oauth2/token
- { access_token: ‘REMOVED’,
refresh_token: ‘REMOVED’,
scope: [ ‘user_read’, ‘user_subscriptions’ ],
token_type: ‘bearer’ } save that to the database -
let data = { "type": "LISTEN", data: { "topics": ["channel-subscribe-events-v1.44322889"], "auth_token": accessToken } } socket.send(JSON.stringify(data));
And connect to the socket
{“type”:“RESPONSE”,“error”:“ERR_BADAUTH”,“nonce”:“”}
I still get that error.