---
name: "bindUnlockMethod"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "bindUnlockMethod - Bind unassociated unlock method to user."
summary: "Bind unassociated unlock method to user."
---

## bindUnlockMethod

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

### Description

Bind unbound unlocking methods to a user

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `BindUnlockMethodParams` | Yes | Binding parameters (userId: user ID, unlockList: list of unlock methods to bind) |

### Return Value

Type: `Promise<boolean>`

None (resolve after successful binding)

### Referenced Types

##### `interface` BindUnlockMethodParams

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `userId` | `string` | Yes | User ID |
| `unlockList` | `Object[]` | Yes | List of unlocking methods to associate |

##### `type` BindUnlockMethodParams.unlockList

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | `"finger" \| "face" \| "password" \| "card" \| "fingerVein" \| "hand" \| "eye"` | Yes | Unlock method type |
| `unlockId` | `number` | Yes | Hardware ID of the unlocking method |


### Examples

```ts
import { bindUnlockMethod } from '@ray-js/lock-sdk';
await bindUnlockMethod({ userId: 'user_001', unlockList: [{ id: 'method_001' }] });
```
