Thanks @george, I’ve fleshed out the exact steps in case another user needs more information.
- set the
redirectURIvariable inmain.jstohttp://localhost:3000. - set the redirect URI in your twitch app dashboard to
http://localhost:3000. - install nodejs.
- open a terminal and run
npm install http-server -g. - cd into
pubsub-samples/javascript. - run
http-server -p 3000. - open
http://localhost:3000in your web browser.