Skip to content

bllackbull/twitchtokentool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You can easily generate your own Twitch OAuth tokens with this tool. Here is a quick usage guide for you:

1. Create your Twitch App

  • Go to Twitch Dev Console and login to your account.
  • In your dashboard, click on "Register Your Application" button.
  • Give your application a name, select your category and choose your client type.
  • Under OAuth Redirect URLs, add https://twitchtokentool.click .
  • Complete the reCAPTCHA test and create your application.

Now that you have created your app, you can see your Client ID and by clicking on "New Secret" button, a Client Secret token will be generated for you. Make sure to store them somewhere safe.

2. Generate your tokens

  • Open Twitch Token Tool and go to "Generate Token" section.
  • Provide your Client ID and Client Secret and hit "Generate" .
  • You will be redirected to Twitch Authorization page. Click "Authorize" .

Your tokens are now easily generated! There are two tokens and here is a description about each of them:

  • Access Token: This is your main token to use in your app.
  • Refresh Token: Access token expires after a short time so you need to refresh it using your refresh token. For more information visit Refresh Token section.

Make sure to store both tokens somewhere safe.

Note: By default, the generated access token doesn't include any scopes. You can select the scopes you want to be included in your token by clicking on "Configure Scopes" button before generating your token. For more information about scopes, visit Twitch API scopes documentation.

3. Refresh Token

As previously mentioned, access tokens will expire after a short time and they need to be refreshed. To do so, you can manually refresh your token via website or use our API endpoint:

  • Website:

    • Open Twitch Token Tool and go to "Refresh Token" section.
    • Provide the refresh token you received earlier to refresh your access token.
    • Store your new access token somewhere safe.
  • API endpoint:

    • Use https://api.twitchtokentool.click/refresh/YOUR_REFRESH_TOKEN and replace YOUR_REFRESH_TOKEN with your actual refresh token.
    • API will respond to you with a JSON formatted data which includes access_token which is your new access token.

Note: You can only use this tool for tokens that were previously generated by Twitch Token Tool.

Other Tools

Twitch Token Tool provides other tools too which might be useful for you:

Validate Token

You can provide any access token to validate it and get information about it. You can manually do this via website or use our API endpoint:

  • Website:

    • Open Twitch Token Tool and go to "Validate Token" section.
    • Provide an access token.
    • You will see the token's information shortly after.
  • API endpoint:

    • Use https://api.twitchtokentool.click/validate/YOUR_ACCESS_TOKEN and replace YOUR_ACCESS_TOKEN with your actual access token.
    • API will respond to you with a JSON formatted data which includes:
      • client_id : The Client ID associated with the access token.
      • login : The username of the owner of that access token.
      • scopes : The Scopes associated with the access token.
      • user_id : The user ID of the owner of that access token.
      • expires_in : The amount of time left until the token expires.

Revoke Token

If you don't want to use your access token anymore or you think that your access token has been leaked, You can manually revoke your token via website or use our API endpoint:

  • Website:

    • Open Twitch Token Tool and go to "Revoke Token" section.
    • Provide an access token.
    • Your access token will be revoked shortly after.
  • API endpoint:

    • Use https://api.twitchtokentool.click/revoke/YOUR_ACCESS_TOKEN and replace YOUR_ACCESS_TOKEN with your actual access token.
    • Your access token will be revoked shortly after.

Back to top

About

A tool to generate Twitch OAuth access token and refresh token and perform other similar actions.

Topics

Resources

Stars

Watchers

Forks

Contributors