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

## bindUnlockMethodFromLog

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

### Description

No unlocking method is associated with the user in the binding record

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `BindUnlockMethodFromLogParams` | 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` BindUnlockMethodFromLogParams

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

##### `type` BindUnlockMethodFromLogItem

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


### Examples

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