---
name: "updateConfig"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.1.0" }
title: "updateConfig - Update SDK configuration."
summary: "Updates lock SDK configuration after initialization."
---

## updateConfig

> [VERSION] @ray-js/lock-sdk >= 1.1.0

### Description

Update the target Runtime configuration (only merge fields that are populated in the input).

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `options` | `UpdateConfigParams` | Yes | Same shape as LockSDKOption but without devInfo / deviceId / preFetch |

### Return Value

None


### Referenced Types

##### `type` UpdateConfigParams

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `strictMode` | `boolean` | No | Strict mode: when true, perform strict validation for DPs |
| `passwordDigitalBase` | `number` | No | Numeral base used for password display/edit (≤10) |
| `passwordSupportZero` | `boolean` | No | Whether the password allows the digit 0 |
| `supportMultipleFace` | `boolean` | No | Whether multi-face capability is supported |
| `supportOfflineDps` | `boolean` | No | Whether to enable offline tasks such as offline DP sync |
| `logLevel` | `"off" \| "error" \| "warn" \| "info" \| "debug" \| "trace"` | No | SDK diagnostic log level, default warn |
| `logToConsole` | `boolean` | No | Whether to additionally output to console, default false |
| `kind` | `"lock" \| "fit" \| "screen"` | No | SDK type: lock (default), accessory, or detached screen. |


### Examples

#### Disable strict mode and enable multi-face

```ts
import { updateConfig } from '@ray-js/lock-sdk';
updateConfig({ strictMode: false, supportMultipleFace: true });
```
