Passport authentification - client server - headers issues

The issue is that your page is making an GET request to that URL, which is not how OAuth works.

The correct way is to send the user to that URL, as the user has to be on the Twitch site to accept or deny connecting to your app. Once the user accepts or declines they will be redirected to your redirect URL.

2 Likes