code: def create_auth_token(sender, instance, raw, created, **kwargs):
      
      if not raw:
          if created:
              sender.objects.create(user=instance)
docs: Create token when a user is created (from rest_framework).