GitXplorerGitXplorer
A

Twitch-AuthServer-Example

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a3eb5fd3f1ec2a58dc07d0d7a2898db9cc278b70

.git

AAlcaDesign committed 9 years ago
Unverified
91a17798ab32d9a8193f7daf0d215fe742845358

Corrected package

AAlcaDesign committed 9 years ago
Unverified
7106c79eab71315509ff926fc540c23f37fc9904

Remove unnecessary modules

AAlcaDesign committed 9 years ago
Unverified
9521b82bb430ca1d67c857ffd7dbad7cd65e7dd2

Extra grave removed

AAlcaDesign committed 9 years ago
Unverified
70ded097f58471f941efe398d912ec13b13546ca

Spelling

AAlcaDesign committed 9 years ago
Unverified
264fe36e764bb88a14f83a5178b57db2daa386af

Update README.md

AAlcaDesign committed 9 years ago

README

The README file for this repository.

Twitch Auth Server Example

A basic Express server example for logging in with Twitch.

Instructions

  1. Clone the repository: git clone https://github.com/AlcaDesign/Twitch-AuthServer-Example.git.
  2. Create the file "config.json" based on the /config/config.default.json.
    1. Create or edit a Twitch app that will redirect to http://127.0.0.1:3000/auth/twitch/callback.
    2. Insert the generated client ID and client secret into their respective fields.
    3. Change the scope as needed.
    4. Create a random key to put in session.secret (a phrase or just random bits if you'd prefer).
  3. Run the npm install command in the repository folder to install the node dependencies.
  4. Run the server: node index.js.
  5. Open to this page in your browser: http://127.0.0.1:3000/.
  6. Click "Login" and authorize your app with your credentials.
  7. Once you're redirected, you should be back to the first page and your name should have appeared.