updateUnlockMethod(params: updateUnlockMethodParams)

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

Description

Update unlock method

Parameters

ParameterTypeRequiredDescription
YesMethod input parameters

Return Value

Type: Promise<void>
None (resolve after a successful update)

Error Code

Error CodeError Message
1057Special passwords are not supported and App push is not enabled
1058SMS is supported but App push and SMS are not enabled
1066SMS phone number is empty
1056Country code is empty
1055Verification code is empty

Examples

import { updateUnlockMethod } from '@ray-js/lock-sdk';
await updateUnlockMethod({ id: 'method_001', name: 'Owner fingerprint' });