Private API Credentials OAuth Token - anxdpanic/plugin.video.twitch GitHub Wiki
- From the Kodi addon, go to : Settings - Login and select Get OAuth Token
- Visit the URL that is shown in the popup (https://twitchaddon.page.link/1Sk5 as of writing this guide, may change in the future)
- Log in with your Twitch account *
- On the next page click on the Authorize button which is located at the bottom of the screen *
- The OAuth token will be displayed. Enter this code in Settings - Login - OAuth Token of the Twitch Kodi Addon
- 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>
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!).
-
Go to twitch.tv and log in
-
a) Chrome:
- Right click anywhere, click
Inspect
, and go to theApplication
tab. UnderStorage
-Cookies
-https://www.twitch.tv
there should be an entry calledauth-token
b) Firefox:
- Right click anywhere, click
Inspect element
, and go to theStorage
tab. In the section for www.twitch.tv here should be an entry calledauth-token
- Right click anywhere, click
-
Copy that
auth-token
value and enter it in Settings - Subscriber and Turbo Benefits -
This token also is personal and should not be shared with anyone!
-
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>
- 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>