-
Notifications
You must be signed in to change notification settings - Fork 1
Make a dotenv file
-
Login and create a new app in the Twitch Developer console.
-
Set a good name for your app [can be anything], and set the "OAuth Redirect URLs" to
http://localhost:3005
[replace "localhost" with an IP of an external server, if applicable] -
Pick "Broadcaster Suite" as the category, solve the CAPTCHA if you have one, and click "Create".
-
Go to the list of your apps, go into "Manage" for the app you made, and copy down the Client ID. You'll need this later.
-
Click "New Secret" to make a new Client Secret. You'll also need this later.
-
Click "Save" on the bottom if necessary, and go back to the Streamsaver directory to continue.
-
Use a text editor or IDE to create a file called
.env
in the project directory. -
In this file, type
client_id=
and paste in your Client ID from earlier. -
Make a new line [press "Enter" or "Return"], type
client_secret=
and paste in your Client Secret from earlier. -
Save the file as
.env
. Be sure to remove any auto-added file extension, such as.txt
. The entire file name should be.env
. -
Restart your Node.js instance by pressing Control-C
^C
and typingnode .
again.