mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
add refresh token to case 1 too
This commit is contained in:
parent
46f7c18757
commit
c47b641c62
|
@ -81,6 +81,8 @@ class SocialLoginSerializer(serializers.Serializer):
|
|||
# Case 1: We received the access_token
|
||||
if attrs.get('access_token'):
|
||||
access_token = attrs.get('access_token')
|
||||
# Also optional refresh token
|
||||
refresh_token = attrs.get('refresh_token')
|
||||
|
||||
# Case 2: We received the authorization code
|
||||
elif attrs.get('code'):
|
||||
|
|
Loading…
Reference in New Issue
Block a user