startAddUnlockMethod(params: StartAddUnlockMethodParams)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Start adding an unlock method
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Enrollment parameters (userId: user ID, timeout: timeout (ms)) |
Return Value
Type: Promise<StartAddUnlockMethodResult>
None (resolves after the process ends)
StartAddUnlockMethodResult
| Property | Type | Description |
|---|---|---|
total | number | Total number of steps |
Error Code
| Error Code | Error Message |
|---|---|
1014 | This unlock method type is not supported |
1001 | Device is offline |
1002 | Operation timed out |
1015 | ~1025 Device-reported add failure (status 0~10) |
1026 | Device-reported add failure (status 0xfe) |
1027 | Device reported an unknown stage |
Valid Values
StartAddUnlockMethodParams.type
| Value | Description | Since |
|---|---|---|
finger | - | - |
face | - | - |
password | - | - |
card | - | - |
fingerVein | - | - |
hand | - | - |
eye | - | - |