getFitOfflineOncePassword()

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

Description

Get the current accessory's one-time offline password

Parameters

None

Return Value

Type: Promise<FitOfflineOnceResult>
One-time offline password result (password parsed per the lock's numeral base/zero-hiding; retains pwdId/gmtExpired)

Examples

import { getFitOfflineOncePassword } from '@ray-js/lock-sdk';
const { password, pwdId } = await getFitOfflineOncePassword();