This is a very rough example of using implicit auth to auth. It provides two authentication links, one that'll just get public data, and a second that'll return public + the users email.
This example is also available via GitHub Pages!
Give it a whirl here
- Visit Twitch Dev Console
- Visit Applications
- Manage your Application, or create one if you don't have one
- Copy the Client ID into
client_idJavaScript Variable - You'll need to throw this webpage into a website somewhere, and update the
redirectin the html file and on the dev console accordingly.
This is so rough that you need to upload it somewhere or know how to start a WebServer on 127.0.0.1 port 80 locally
If you have PHP installed
sudo php -S 127.0.0.1:80
Will get you going real quick
If you use the GitHub Live example to test, you can Disconnect the "Barry's GitHub Examples" Application on the Connections page