# Invalid secret rig extension

**URL:** <https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367>\
**Category:** Extensions\
**Created:** [February 6, 2023, 3:27pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367 "2023-02-06T15:27:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielgbullido](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/danielgbullido/32/18215_2.png) [@danielgbullido](https://staging-discuss.dev.twitch.com/u/danielgbullido)\
**Post date:** [February 6, 2023, 3:27pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/1 "2023-02-06T15:27:49Z")

</div>

Hi

I have a problem when i try to open extension project using twitch developer Rig

 ![Capture](https://d2spem0quai2ol.cloudfront.net/original/3X/a/a/aa04b31579859d6a2df9f23a95f0d13d68ab4713.jpeg)

i followed the link for retrive extension secret but never works…

please help me!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 6, 2023, 7:02pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/2 "2023-02-06T19:02:29Z")

</div>

The rig is deprecated. And the API’s that support it are _dead_. So your mileage will vary

You are attempting to copy/paste in your secret?  
Make sure you have copied the entire thing and you’ve grab the right secret from the right extension.

---

<div class="post-metadata">

**Author:** ![danielgbullido](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/danielgbullido/32/18215_2.png) [@danielgbullido](https://staging-discuss.dev.twitch.com/u/danielgbullido)\
**Post date:** [February 6, 2023, 7:18pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/3 "2023-02-06T19:18:57Z")

</div>

Hi

So… how do I test the extension that I am developing?

On your website you suggest downloading developers rig to develop.

If it is no longer used how should I test It, create views etc.?

I get the token from the extension configuration page.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 6, 2023, 7:21pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/4 "2023-02-06T19:21:31Z")

</div>

> [@danielgbullido](#):
>
> So… how do I test the extension that I am developing?

On the Twitch website, install the extension to a channel and test on Twitch instead.

It’s recommened to put your testing base URI being SSL, so you can accurately test.

Either using a webserver you uplaod files to, or ngrok or similar for a SSL enabled tunnel

> [@danielgbullido](#):
>
> If it is no longer used how should I test It, create views etc.?

You can read more about the deprecation here: [End of support for the Twitch Developer Rig](https://staging-discuss.dev.twitch.com/t/end-of-support-for-the-twitch-developer-rig/42995)

Seems that you can’t add new projects using the UI since it tries to validate the details and those older API’s for that are dead/removed.

---

<div class="post-metadata">

**Author:** ![danielgbullido](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/danielgbullido/32/18215_2.png) [@danielgbullido](https://staging-discuss.dev.twitch.com/u/danielgbullido)\
**Post date:** [February 7, 2023, 12:32pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/5 "2023-02-07T12:32:17Z")

</div>

Ok…

so for test my extension in local… how to simulate this.twitchHelper.onAuthorized(…) or the only solution is upload the build and instal on [twicth.com](http://twicth.com) ?

thanks

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 7, 2023, 12:35pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/6 "2023-02-07T12:35:05Z")

</div>

In local test you specify a URL  
That URL is where Twitch will load from.  
You do not need to be in hosted test to test on the Twitch Website.

I wrote about it a fair bit in this blog post [Twitch Extensions Part 5 – Dev Environment – Barry Carlyon](https://barrycarlyon.co.uk/wordpress/2021/03/15/twitch-extensions-part-5/)

---

<div class="post-metadata">

**Author:** ![danielgbullido](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/danielgbullido/32/18215_2.png) [@danielgbullido](https://staging-discuss.dev.twitch.com/u/danielgbullido)\
**Post date:** [February 9, 2023, 4:31pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/7 "2023-02-09T16:31:32Z")

</div>

Hi Barry,

In your example you used Twitch Developer Rig and you told me this is deprecated and is imposible to add existing proyect.

I need test my extension in local but this method in local never work:

```auto
this.twitchHelper.onAuthorized(this.onAuthorized.bind(this));
this.twitchHelper.onContext(this.onContext.bind(this));
this.twitchHelper.bits.onTransactionComplete(this.onTransactionComplete.bind(this));
this.twitchHelper.bits.onTransactionCancelled(this.onTransactionCancelled.bind(this));

```

Can you tell me how to get this.onAuthorized return data in local ?

thanks

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 9, 2023, 4:39pm UTC](https://staging-discuss.dev.twitch.com/t/invalid-secret-rig-extension/43367/8 "2023-02-09T16:39:40Z")

</div>

> [@danielgbullido](#):
>
> In your example you used Twitch Developer Rig

My blog series refers to the rig since it wasn’t deprecated at the time.

Part 5 talks about how you replace a function of the Developer Rig with an external server to serve your files (as that was a function the dev rig could do).

That server _could_ be used in the now deprecated rig via a “start frontend server with a command”.

> [@danielgbullido](#):
>
> I need test my extension in local but this method in local never work:

Then you need to trace and debug your extension and find out why these events are not being called.

Not sure what `this.twitchHelper` is here either, which suggest some sort of framework. Did that framework init in time and not cause a Twitch to go “something is wrong extension did not load in time”

So you need to open developer tools and trace why your javascript isn’t running. Did your HTML actually load?

Debugging an extension is the same as debugging a regular website, since at the end of the dat an extension _is_ just a website with a couple of requriements.
