Skip to main content

Upgrading to backend version 1.6

To use TwiWorks’ Refresh Token abilities, you will be required to update your backend to version 1.6+. This version needs an additional field in your database, and as such, we highly recommend you remove your old version, and DROP the table that TwiWorks used to use. This will only affect tokens that are in the process of being generated (i.e. that the game has requested, but the user has not yet authorized), and will cause a minimal disruption in user experience.

To drop TwiWorks’ old table, please select the proper database, and use the following SQL query to remove it.

warning

This action is destructive, and we cannot take any responsibility for data loss that is incurred by using this or any other part of TwiWorks.

DROP TABLE `TwitchUsers`;

Finally, use the SQL code contained in database-setup.sql to re-create your table. This will make your database setup compatible with the latest version of TwiWorks!