Update serializers.py (#172)

pass id_token to tokens_to_parse
This commit is contained in:
Yeh Yen-Ke 2020-11-24 12:51:50 +08:00 committed by GitHub
parent 441b2e9962
commit effd621dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ class SocialLoginSerializer(serializers.Serializer):
tokens_to_parse = {'access_token': access_token}
# If available we add additional data to the dictionary
for key in ["refresh_token", adapter.expires_in_key]:
for key in ["refresh_token", "id_token", adapter.expires_in_key]:
if key in token:
tokens_to_parse[key] = token[key]
else: