0.1.0 • Published 3 years ago

fjreach-u-key v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

reach-component-template

Project setup

yarn install fjreach-u-key

Usage

import UKeyApi from 'fjreach-u-key'
improt axios from 'axios'

/**
 * axios可以为定制过的实例
 */
const uKeyApi = new UKeyApi({ axiosInstance: axios })

API

/**
* 获取容器id
*/
getContainerId: () => Promise<string>;

/**
* 获取UKey中的账号,并验证密码
* @param password
*/
verifyPassword: (password: string) => Promise<any>;

/**
* 获取密码重试剩余次数
*/
getPasswordRetryCount: () => Promise<number>;

/**
* 获取base64证书接口
* @param certType
*/
getCertBase64String: (certType: string) => Promise<string>;

/**
* 获取证书信息接口,需使用base64的加密证书,详见文档3.2.1.9
* @param type
*/
getCertInfo: (type: string) => Promise<string|number>;

/**
* 获取UKey的打开状态(是否输入过密码登录)
*/
getUKeyStatus: () => Promise<boolean>;
0.1.0

3 years ago

0.1.0-beta.8

3 years ago

0.1.0-beta.7

3 years ago

0.1.0-beta.6

3 years ago

0.1.0-beta.5

3 years ago

0.1.0-beta.3

3 years ago

0.1.0-beta.2

3 years ago

0.1.0-beta.1

3 years ago