Skip to content

tokenDigest

function tokenDigest(token): Promise<string>;

Defined in: src/http/introspect.ts:76

Return a SHA-256 hex digest of token, for diagnostics.

The credential itself must never reach a log, a span, or an error message. A digest is stable enough to correlate one credential’s failures across records without being the credential.

Parameter Type
token string

Promise<string>