{ status: 400, message: 'Invalid authorization code' }

Then this suggests a fault in twitchClass.getTwitchAccessToken

Would need to see what that function is doing.