code: def set_client_user_consent(self):
          
          date_given = timezone.now()
          expires_at = date_given + timedelta(
              days=settings.get('OIDC_SKIP_CONSENT_EXPIRE'))
  
          uc, created = UserConsent.objects.get_or_create(
              user=self.request.user,
              client=self.client,
              defaults={
                  'expires_at': expires_at,
                  'date_given': date_given,
              }
          )
          uc.scope = self.params['scope']
  
          # Rewrite expires_at and date_given if object already exists.
          if not created:
              uc.expires_at = expires_at
              uc.date_given = date_given
  
          uc.save()
docs: Save the user consent given to a specific client.
  
          Return None.