Topic-icon Problem registering with Twitch

Active Subscriptions:

None
3 years 7 months ago #66682 by skyiron
Hi,
I'm having trouble registering users with Twitch.

With debug on, I get the following error message when trying to register with Twitch.
Error code 401 received requesting data: {"error":"Unauthorized","status":401,"message":"Client ID and OAuth token do not match"}.

The error seems pretty straight forward, but I've checked that the Client ID and secret are correct in the configuration, so am uncertain as to what is causing the problem. Any ideas?

I've found similar error messages reported at github.com/hybridauth/hybridauth/pull/1171
The topic has been locked.
Support Specialist
3 years 7 months ago #66685 by alzander
Thanks for letting us know about this. Could you try making the following edit on your system to see if that gets you going?

Please edit the /plugins/jfbconnect/provider_twitch/provider/twitch.php file. Around line 34, you'll see:
$headers['Content-Type'] = 'application/json';
After that, add:
$headers['Client-ID'] = $this->appId;

Let us know if that fixes you up and we'll make sure to include the change in the next release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 7 months ago #66689 by skyiron
That fixed the problem for me.
Thank you Alex!
The topic has been locked.
Support Specialist
3 years 7 months ago #66690 by alzander
Awesome! Glad to hear that helped and thanks for reporting the issue. This will be a part of the next release, so you won't have to worry about it any further.

Thanks,
Alex
The topic has been locked.