Helpers for keeping credentials out of toString() output and logs.
toString()
Renders only the keys of properties; the values (which may be secrets) are never printed.
null or <redacted>, for a presence-only rendering of a secret.
null
<redacted>
Reduces a URL to scheme://host[:port]. JSON-RPC endpoints routinely embed the API key in the path (/v2/<key>) or query (?apikey=...) or userinfo; none of that survives. An unparseable value yields <redacted-url> rather than being echoed back.
scheme://host[:port]
/v2/<key>
?apikey=...
<redacted-url>