useBits returning 401 in developer rig


#1

I’m using the developer rig and am receiving a 401 when attempting to test useBits with my product sku. Any idea why this is? I am running the panel as broadcaster, logged in linked, and logged in unlinked. All return 401 when calling useBits.

window.Twitch.ext.bits.getProducts().then(function(products) {
  $.each(products, function(){
  	window.Twitch.ext.bits.useBits(this.sku);
  })
});

I should add that I am an affiliate.


#2

Doesn’t matter. The rig doesn’t know

This thread covers testing

But if you are in the rig currently I believe you can only use the loopback functions for testing with. Not the live calls.

Also that code is a little nasty, it’ll attempt to poke the transaction dialog for every product you have…