diff --git a/rest_auth/serializers.py b/rest_auth/serializers.py index 723cfca..e592dfc 100644 --- a/rest_auth/serializers.py +++ b/rest_auth/serializers.py @@ -146,7 +146,7 @@ class JWTSerializer(serializers.Serializer): JWTUserDetailsSerializer = import_callable( rest_auth_serializers.get('USER_DETAILS_SERIALIZER', UserDetailsSerializer) ) - user_data = JWTUserDetailsSerializer(obj['user']).data + user_data = JWTUserDetailsSerializer(obj['user'], context=self.context).data return user_data