fitCancelAddUnlockMethod(params: FitCancelAddUnlockMethodParams)

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

Description

Cancel the in-progress add-unlock-method process on the accessory side

Parameters

ParameterTypeRequiredDescription
YesCancel parameters (same as at start)

Return Value

Type: Promise<void>
None

Error Code

Error CodeError Message
1052Previous operation on the same accessory is still in progress
1014This unlock method type is not supported
1001Device is offline
1002Operation timed out

Valid Values

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

Examples

import { fitCancelAddUnlockMethod } from '@ray-js/lock-sdk';
await fitCancelAddUnlockMethod({
  lockDevId: 'lock_xxx',
  userId: 'user_001',
  type: 'finger',
});