OAuth login & node.js & passport.js

I was using login in my website via Twitch thanks to the https://www.npmjs.com/package/passport-twitch-new, but today it is failing:

Error InternalOAuthError: failed to fetch user profile (status: 401 data: {"error":"Unauthorized","status":401,"message":"Client ID and OAuth token do not match"})

Do you have any information about it guys?

See also

https://discuss.dev.twitch.tv/t/passport-js-auth-examples/25362/3

I also started getting the same error. No change in my code, and it was working just fine a few days ago. Now getting 401 Unauthorized with message “Client ID and OAuth token do not match”. Was there an update of some sort lately? (I’m also useing the passport-twitch-new package mentioned above. The linked comment was an older issue and did not give me any clues in how to fix this.

There was an announcement months ago that changes to Helix were coming, with scheduled windows that would temporarily apply the change to give people warning if their apps were broken, before going fully live yesterday.

Most Passport modules on Twitch didn’t bother to update to the announced changed, so stopped working.

Try using https://developer.aliyun.com/mirror/npm/package/@d-fischer/passport-twitch which is a fork that has been updated and should work.

Thanks Dist! Fantastic, the fork you linked to works perfectly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.