Skip to content

Commit

Permalink
Update serializers.py (#172)
Browse files Browse the repository at this point in the history
pass id_token to tokens_to_parse
  • Loading branch information
yyken committed Nov 24, 2020
1 parent 441b2e9 commit effd621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dj_rest_auth/registration/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def validate(self, attrs):
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:
Expand Down

0 comments on commit effd621

Please sign in to comment.