Bit error 401 when i press a button

I elected to use the bit and I was approved. I created an extension and enabled the uses of BIts. I went to the rig, created an item, and I’m looking for the item and find it normally.

image

but when i try to rung this function onclick:

function useBits(){

    let productSku = 'abc123';

    Twitch.ext.bits.useBits(productSku);

} After clicking I'm getting 401 error

What state is you extension in?

Development

Please refer to the documentation

And testing notes

And ensure your testing environment is correct configured for the kind of test you wish to run

1 Like