Private API Credentials OAuth Token - anxdpanic/plugin.video.twitch GitHub Wiki

1. Base setup (required for using the addon)

  1. From the Kodi addon, go to : Settings - Login and select Get OAuth Token
  2. Visit the URL that is shown in the popup (https://twitchaddon.page.link/1Sk5 as of writing this guide, may change in the future)
  3. Log in with your Twitch account *
  4. On the next page click on the Authorize button which is located at the bottom of the screen *
  5. The OAuth token will be displayed. Enter this code in Settings - Login - OAuth Token of the Twitch Kodi Addon
  6. Since it’s a personal code connected to your Twitch account do not share it with anyone!

* If you are already logged in to Twitch in your browser and/or have followed these steps before, steps 3 and/or 4 may be automatically skipped

To avoid having to type everything manually you can also edit the settings.xml file in userdata/addon_data/plugin.video.twitch

<setting id="oauth_token_helix">paste_oauth_token_here</setting>

2. Enabling additional features

The following steps are required to enable subscriber / Twitch Turbo benefits (Ad-free viewing) and a few minor features (e.g. following/unfollowing channels)

To obtain your Private API Credentials - OAuth Token you will have to extract it from the Twitch web page cookies (This is not the OAuth token generated in the previous step!).

  1. Go to twitch.tv and log in

  2. a) Chrome:

    • Right click anywhere, click Inspect, and go to the Application tab. Under Storage - Cookies - https://www.twitch.tv there should be an entry called auth-token

    b) Firefox:

    • Right click anywhere, click Inspect element, and go to the Storage tab. In the section for www.twitch.tv here should be an entry called auth-token
  3. Copy that auth-token value and enter it in Settings - Subscriber and Turbo Benefits

  4. This token also is personal and should not be shared with anyone!

  5. OAuth Client ID should not be changed under most circumstances

To avoid having to type everything manually you can also edit the settings.xml file in userdata/addon_data/plugin.video.twitch

<setting id="private_oauth_token">paste_oauth_token_from_the_web_here</setting>

3. Troubleshooting

  • OAuth Tokens expire regularly. The base token (Settings - Login - Get OAuth Token) is valid for 2 months, after which you will get a pop-up notification that your token is invalid/expired and have to create a new one (follow steps above and replace the old token with the new one)
  • The "Subscriber and Turbo benefits"-Token MAY also expire, but intervals are unknown. If the addon stops working correctly and you already replaced the normal OAuth Token, check if the second Token is still the same as in your browser or also needs updating
  • Generally speaking an empty token is better than a wrong/expired one. If you get any error popup loops or tried different things before coming here and may have screwed up your settings, just reset to the baseline and then follow the guide above. The default values for the relevant settings are:

Settings - Login - Oauth Token = <EMPTY>

Settings - Subscriber and Turbo Benefits - OAuth Client ID = kimne78kx3ncx6brgo4mv6wki5h1ko

Settings - Subscriber and Turbo Benefits - OAuth Token = <EMPTY>

⚠️ **GitHub.com Fallback** ⚠️