cancelAddUnlockMethod(params: CancelAddUnlockMethodParams)

Requires:
@ray-js/lock-sdk≥1.0.0

Description

Cancel the ongoing add unlock method process.

Parameters

ParameterTypeRequiredDescription
YesCancellation parameters (type: unlock method type, userId: user ID, timeout: timeout (ms))

Return Value

Type: Promise<void>
None (resolves after cancellation succeeds)

Error Code

Error CodeError Message
1052The previous operation on the same device has not completed
1014This unlock method type is not supported
1001Device is offline
1002Operation timed out

Valid Values

CancelAddUnlockMethodParams.type
ValueDescriptionSince
finger--
face--
password--
card--
fingerVein--
hand--
eye--

Examples

import { cancelAddUnlockMethod } from '@ray-js/lock-sdk';
await cancelAddUnlockMethod({ type: 'fingerprint', userId: 'user_001' });