Questions creating first Twitch Extension

Hello,
We are developing an extension and we have several doubts.

1- Is it possible to use the login system with Twitch accounts within the Extension? (So ​​that the viewers can be identified).

2- We are using “Boilerplate” downloaded from https://github.com/twitchdev/extensions-samples/tree/master/boilerplate
But the instructions / guides turn out to be very short and with little information. In Dependencies it says: Need docker and docker-compose.
We never haven’t used docker, so we are lost with this program.
2.1- We have windows 10, installing “docker” is it necessary install “docker-compose”? Both?

3- When you are in Docker, where does the Boilerplate file come from? We leave it in the Desktop of C: / and then, we move from the Docker console to that route to execute the command: docker-compose up --build

4- Then, when Docker this is done, go to Kitematic (Alpha) and check “Running” but localhost or IP:port dont work. On preview same, white section.

If someone can give us guide or exact information of the steps to follow to make everything work and start programming the extension, we would appreciate it very much.

Greetings, wonderful community.

I can help you with your first question but not the rest since I didn’t use their boilerplate when making my extension and don’t use Docker.

But for question 1: You can’t use the standard OAuth that you’d use on a third party website but they do provide a way to allow user to share their identity.

Check out: https://dev.twitch.tv/docs/extensions/#json-web-tokens-jwts and https://dev.twitch.tv/docs/extensions/reference/#onauthorized-functionauthcallback
Also make sure to enable the Yes, I would like my extension to request an identity link. in the dashboard in the Extension Capabilities tab.

1 Like

You may want to look at the Hello World Sample as an alternate starting point in understanding the building blocks of Extensions.

4 Likes

Oooh, I didn’t see that one yet! Honestly, after seeing Docker in the other examples I gave up and just started from scratch for myself.

1 Like

I used this repo as a guide for myself. https://github.com/xzion/twitch-extension-demo

2 Likes

Really wish I had found this instead of bashing my head against the boilerplate and the documentation until it finally all worked. I guess learning the hard way isn’t the worst thing.

1 Like

To be fair, this was only just released! Head bashing was not in vain!

Honestly, this new stuff I’m looking at is going to be great for semi-experienced people looking to make an extension. This is more in line with what I had expected. Nice work. Hoping to have my extension v1 ready for review soon, and the rig should help things along. Having a test environment that more accurately reproduces hosted is critical.

Really wish I had found this instead of bashing my head against the boilerplate and the documentation until it finally all worked. I guess learning the hard way isn’t the worst thing.

Agree, spent too much time trying to just build the boilerplate. :disappointed: