---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / maskConfigValue

# Function: maskConfigValue()

> **maskConfigValue**(`value`): `string`

Defined in: [packages/b2c-tooling-sdk/src/config/redaction.ts:45](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/4c2d4c5cb34e8e0ea15a260d257e468c823c4885/packages/b2c-tooling-sdk/src/config/redaction.ts#L45)

Mask a sensitive value, showing the first 4 characters when long enough to
aid identification without disclosing the secret. Matches the convention
used by the SDK logger (`<first4>...REDACTED`).

## Parameters

### value

`string`

The raw value to mask

## Returns

`string`

The masked representation
