cancelAddUnlockMethod(params: CancelAddUnlockMethodParams)
Requires:
@ray-js/lock-sdk≥1.0.0
Description
Cancel the ongoing add unlock method process.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Cancellation parameters (type: unlock method type, userId: user ID, timeout: timeout (ms)) |
Return Value
Type: Promise<void>
None (resolves after cancellation succeeds)
Error Code
| Error Code | Error Message |
|---|---|
1052 | The previous operation on the same device has not completed |
1014 | This unlock method type is not supported |
1001 | Device is offline |
1002 | Operation timed out |
Valid Values
CancelAddUnlockMethodParams.type
| Value | Description | Since |
|---|---|---|
finger | - | - |
face | - | - |
password | - | - |
card | - | - |
fingerVein | - | - |
hand | - | - |
eye | - | - |