basalt / audit/src / isSensitiveKey
Function: isSensitiveKey()
> isSensitiveKey(key): boolean
Defined in: audit/src/index.ts:348
Whether a payload key names a secret. Segment-aware rather than a bare substring test: pwd, privateKey, jwt, auth, accessKey are masked; compass, bypass, sessionCount, author are not.
Parameters
key
string
Returns
boolean