code: def verify_user_alias(user, token):
      
      if token.to_alias_type == 'EMAIL':
          if token.to_alias == getattr(user, api_settings.PASSWORDLESS_USER_EMAIL_FIELD_NAME):
              setattr(user, api_settings.PASSWORDLESS_USER_EMAIL_VERIFIED_FIELD_NAME, True)
      elif token.to_alias_type == 'MOBILE':
          if token.to_alias == getattr(user, api_settings.PASSWORDLESS_USER_MOBILE_FIELD_NAME):
              setattr(user, api_settings.PASSWORDLESS_USER_MOBILE_VERIFIED_FIELD_NAME, True)
      else:
          return False
      user.save()
      return True
docs: Marks a user's contact point as verified depending on accepted token type.