I am trying to work with Passport JS, and on their site under Strategies I see 2 different Twitch ones, but they use the same example code; and then when I go to the github I see a third auth example using Passport and I am unsure which one to follow.
Example 1: http://www.passportjs.org/packages/passport-twitchtv/
Example 2: http://www.passportjs.org/packages/passport-twitch/ <-- the one I am following right now.
Example 3: https://github.com/twitchdev/authentication-node-sample/blob/master/index.js
Also, when I am testing my code I am getting
Error 400 Invalid Client ID but I have it set correctly. And I am sure this also plays in, but under my developer console I am seeing:
reload.js:22 WebSocket connection to 'ws://localhost:3000/auth/login/ws' failed: Error during WebSocket handshake: Unexpected response code: 404 I didn’t see any reference to a WebSocket establishment in the example code.
May the 4th be with you!