---
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/b0472c439ca6570be5c7809783a46327d7493694/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
