bindUnlockMethod(params: BindUnlockMethodParams)

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

Description

Bind unbound unlocking methods to a user

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

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

Examples

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