In the last week, we’ve seen a massive increase (1000s of errors for about 1000 users) in “The current authorization is not valid for this context” errors. We haven’t changed anything on our end and testing with my personal account works fine. It’s attempting to follow a user on behalf of the user. I can use the token to get the user’s profile though so the token seems to be valid.
When Authing, I get the permissions listed as:
… permissions:
View your email address
Manage your followed channels
View your paid subscriptions
Are you using the old version of the API (V3) instead of the new, V5?
Also, Twitch released a new feature that allows users to change their name, so if you’re using the old API you probably are trying to do something for a user that changed their name and now you don’t have permission because you’re referring the user by their old name.
Just to be clear, that gem isn’t maintained by Twitch, so you’d have to talk the author to get it updated to use v5 properly (or fork it as you’re doing).