Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Twitch Auth Setup

If you already have your app's Client ID and Client Secret you don't need to register the app, etc... You can just fill them in below, choose your scopes, then hit the button.

I struggle with auth every time I make a Twitch bot. I set this up to make it easier. It uses a Client Id and Client Secret to get a set of scopes via the "Authorization Code Grant Flow"

The Steps (From Scratch)

Launch Page:

- Do not just select every scope. Per the twitch page

"An application must request only the scopes required by the APIs that their app calls. If you request more scopes than is required to support your app’s functionality, Twitch may suspend your application’s access to the Twitch API"

- I'm not sure, but getting a new credential might wipe out any existing credentials you have.

- This works as of Aug. 2023. Twitch has announced plans to change things so no guarantees on its longevity

- This page does not send anything back to my server. But, I'm a random person on the internet. I encourage you to check the source to confirm that

- It does, however, use localstorage to pass credentials to the second page. Those values get cleared by the do pass through that mechanism

- The app Client Secret is only available to view/copy when it's first generated. Make sure to put it in your password manager

- There's not a lot of error handling here. If something goes sideways you're kinda on your own.

Footnotes And References