getUnlockGuide

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

Method signature
getUnlockGuide(type: "finger" | "face" | "password" | "card" | "fingerVein" | "hand" | "eye")

Description

Get the guide image or video for the specified unlock method type

Parameters

ParameterTypeRequiredDescription
type"finger" | "face" | "password" | "card" | "fingerVein" | "hand" | "eye"YesUnlocking method type

Return Value

Type: Promise<UnlockGuide>
Guide data or null
UnlockGuide
PropertyTypeDescription
videoUrlstringOnboarding video URL
picUrlstringOnboarding image URL
expireTimenumberResource expiration time

Valid Values

type
ValueDescriptionSince
finger--
face--
password--
card--
fingerVein--
hand--
eye--

Examples

import { getUnlockGuide } from '@ray-js/lock-sdk';
const guide = await getUnlockGuide('finger');