From c47b641c628648038e31fe183245e965f7e9179f Mon Sep 17 00:00:00 2001 From: fpghost Date: Fri, 16 Nov 2018 10:51:54 +0100 Subject: [PATCH] add refresh token to case 1 too --- rest_auth/registration/serializers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest_auth/registration/serializers.py b/rest_auth/registration/serializers.py index 723b6d7..b3ec01f 100644 --- a/rest_auth/registration/serializers.py +++ b/rest_auth/registration/serializers.py @@ -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'):