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

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

# Function: redactConfigValues()

> **redactConfigValues**(`values`, `options`): `Record`\<`string`, `unknown`\>

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

Produce a shallow copy of resolved config values with sensitive fields
masked. Undefined values are omitted.

## Parameters

### values

[`NormalizedConfig`](../interfaces/NormalizedConfig.md)

Resolved configuration values

### options

`unmask: true` disables masking (secrets shown verbatim)

#### unmask?

`boolean`

## Returns

`Record`\<`string`, `unknown`\>

A new record safe to display, unless `unmask` was set
