getFitOfflinePwdAvailable(pwdType: string)

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

Description

Check whether a given type of offline password for the current accessory can still be obtained (one-time/clear codes limited to 10 per hour).

Parameters

ParameterTypeRequiredDescription
pwdTypestringYesPassword type ('1' one-time / '9' clear code)

Return Value

Type: Promise<OfflinePwdAvailableResult>
{ available, nextAvailableTime }

Examples

import { getFitOfflinePwdAvailable } from '@ray-js/lock-sdk';
const { available, nextAvailableTime } = await getFitOfflinePwdAvailable('1');