* Check whether a storage key (e.g. "auth:password", "auth_password", "user.api_key") * contains any sensitive key name as a case-insensitive substring.
(storageKey: string, sensitiveKeysLower: Set<string>)
| 416 | * contains any sensitive key name as a case-insensitive substring. |
| 417 | */ |
| 418 | function storageKeyIsSensitive(storageKey: string, sensitiveKeysLower: Set<string>): boolean { |
| 419 | const keyLower = storageKey.toLowerCase() |
| 420 | for (const sensitive of sensitiveKeysLower) { |
| 421 | if (keyLower.includes(sensitive)) return true |
| 422 | } |
| 423 | return false |
| 424 | } |
| 425 | |
| 426 | /** |
| 427 | * Redact AsyncStorage mutation payloads. The storage key carries the |
no outgoing calls
no test coverage detected