Compares two secrets in constant time with respect to their content.
The other secret.
Whether both hold the same value.
Returns the secret value; call it only where the value is sent.
The secret text.
Returns [redacted], so a secret never lands in JSON output.
Returns [redacted].
A secret string (API token, invocation token) that never renders its value.
String(secret), template literals,JSON.stringifyandutil.inspectall give[redacted]; Secret.reveal returns the value for the one place that must send it.Example