code: def authorize(self, request, *args, **kwargs):
          
          user = request.user
          if not user.is_authenticated or not user.socialaccount_set.exists():
              raise PermissionDenied()
docs: authorization logic
          raises PermissionDenied if user is not authorized