As the title says, when I try to set required configuration, I get the following error
{"error":"Unauthorized","status":401,"message":"Sorry, you're not allowed to do that"}
My code for the call is:
(entirely on Backend)
var RCToken = jwt.sign({ "exp": Date.now() + 2 * 60 * 1000, "user_id": MY_ID, "role": "external", }, EXT_SECRET); requestify.put('https://api.twitch.tv/extensions/'+clId+'/0.0.0/required_configuration?channel_id='+chId,{'required_configuration': 'Config'},{ headers: { 'Authorization' : 'Bearer ' + RCToken, 'Client-ID': clId, 'Content-Type': 'application/json' }
Where MY_ID is my personal twitch ID (extension owner)
clId is the client ID (the person who just saved their configurations in extension settings)
chId is the channel Id (for which channel the configuration was saved)
Just as a context, when the Broadcaster save the Extensions settings, I make an HTTP call to backend server, the server gets the configurations (using requestify get and a signed JWT), then see if the configurations are Valid and then it tries to call Set required configuration
Thanks In Advance for any help