From b8a4eba53015efd59bc0ef2348b064b6f190ebb0 Mon Sep 17 00:00:00 2001 From: dustin Date: Wed, 21 Apr 2021 17:42:43 -0600 Subject: [PATCH] Fix twitch.py From: https://github.com/authlib/loginpass/pull/80#issue-560504462 --- loginpass/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',