def __eq__(self, other) -> bool:
        """Secrets are equal if their values are equal."""
        other_value = None
        if isinstance(other, (str, bytes)):
            other_value = str(other)
        if hasattr(other, "value") and isinstance(other.value, (str, bytes)):
            other_value = str(other.value)

        return str(self.value) == other_value if other_value else False
Secrets are equal if their values are equal.
fiftyone/internal/secrets/secret.py