I added some extra debug:
401 - {“error”:“Unauthorized”,“status”:401,“message”:“Token invalid or missing required scope”}
I’m able to log in fine. Looking at the requests in bugsnag, this is what I’m seeing:
url
https://gleam.io/auth/twitchtv/callback?code=some hexidecimal]&scope=user_read+user_follows_edit+user_subscriptions&state=[some hexidecimal]
referer
https://api.twitch.tv/kraken/oauth2/authorize?response_type=code&client_id=[correct client id]&redirect_uri=https%3A%2F%2Fgleam.io%2Fauth%2Ftwitchtv%2Fcallback&state=[some hexidecimal]&scope=user_read+user_follows_edit+user_subscriptions
Given that my auth works AND I’m passing the scope through, I’m confused as to what the error message could mean. Any ideas?