Skip to content

basalt / http/src / isSensitiveDetailsKey

Function: isSensitiveDetailsKey() ​

> isSensitiveDetailsKey(key): boolean

Defined in: http/src/error-details.ts:167

Whether a details key names a secret. Segment-aware rather than a bare substring test: password, resetToken, apiKey, privateKey, jwt, sessionId are sensitive; compass, bypass, sessionCount, author, keyId are not.

Parameters ​

key ​

string

Returns ​

boolean

Released under the MIT License.