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

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

##### bindUnlockMethodFromLog.unlockList[] properties

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `type` | `UnlockMethodType` | Yes | - |  |
| `unlockId` | `number` | Yes | - |  |


### Return Value

Type: `Promise<boolean>`

None (resolve after successful binding)

### Referenced Types

##### `type` UnlockMethodType

Unlock method business type literal

```typescript
export type UnlockMethodType =
  | "finger"
  | "face"
  | "password"
  | "card"
  | "fingerVein"
  | "hand"
  | "eye";
```


### Examples

#### Example

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