bindUnlockMethodFromLog

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

Method signature
bindUnlockMethodFromLog(params: )

Description

No unlocking method is associated with the user in the binding record

Parameters

ParameterTypeRequiredDescription
YesBinding parameters (userId: user ID, unlockList: list of unlock methods to bind)

Return Value

Type: Promise<boolean>
None (resolve after successful binding)

Valid Values

BindUnlockMethodFromLogParams.unlockList.type
ValueDescriptionSince
finger--
face--
password--
card--
fingerVein--
hand--
eye--

Examples

import { bindUnlockMethodFromLog } from '@ray-js/lock-sdk';
await bindUnlockMethodFromLog({ userId: 'user_001', unlockList: [{ id: 'method_001' }] });