UNPKG

@yidun/livedetect-sdk-h5

Version:

活体检测 H5

24 lines (23 loc) 550 B
interface IriskOptions { productId: string; apiServer: string; staticServer: string; errorToken: string; offlineToken: string; } interface GetTokenOptions { timeout?: number; } export default class Irisk { private readonly options; private guardian; private loadStatus; private loadPromise; private readonly jsPath; constructor(options: IriskOptions); init(): Promise<void>; getToken(options?: GetTokenOptions): Promise<string>; private loadScript; private createGuardian; } export {};