https://twitchtokengenerator.com
A simple tool to generate access tokens for Twitch with custom scopes. Good tool for testing various Twitch third party tools (like swiftyspiffy/TwitchLib).
An API exists on TwitchTokenGenerator allowing the creation of tokens and implementation in applications. The API is currently implemented in TwitchLib. A flow of how the API works is listed below:
Ping the create endpoint to get a link to give to user:
Create Endpoint: https://twitchtokengenerator.com/api/create
Required Rarameters:
base64 encoded application title
scope list with + delimiter
Example create: https://twitchtokengenerator.com/api/create/QXV0aEZsb3dFeGFtcGxlIFRlc3QgQXBwbGljYXRpb24=/chat_login+user_read
Your application should ping the status endpoint for updates on authorization. The status will return error 3 "Not authorized yet" until the user authorizes their account. After authorization, the status endpoint will return their credentials on the first ping post-authorization. Additional pings will return error 4 "API instance has already expired". This is to protect the user.
Status endpoint: https://twitchtokengenerator.com/api/status
Required Parameters:
Id of auth flow
Example status: https://twitchtokengenerator.com/api/status/rtotgzqct6ro6nwlwr04
Please record your access token as well as the refresh token for usage.
https://twitchtokengenerator.com/api/refresh/{refresh_token}
Over the last year or two, the website has seen significant increase in traffic, and with that has come additional bot attacks and malicious users. I've added significantly more logging, as well as attempts at detecting such behavior. I've also added mitigations including scrambling the website code, recaptcha, and a few other methods to try to prevent malicious users from generating access and refresh tokens to perform large scale chat spam attacks on Twitch, and mass followings of streamers.
MIT License. © 2021 Cole