diff --git a/loginpass/twitch.py b/loginpass/twitch.py index b4afcce..0b8a790 100644 --- a/loginpass/twitch.py +++ b/loginpass/twitch.py @@ -29,7 +29,7 @@ def fix_protected_request(url, headers, data): def normalize_userinfo(client, data): - return map_profile_fields(data[0], { + return map_profile_fields(data['data'][0], { 'sub': 'id', 'name': 'display_name', 'preferred_username': 'login',