Socket
Socket
Sign inDemoInstall

@trustasia/wekey-react

Package Overview
Dependencies
7
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trustasia/wekey-react

``` install yarn add trustasia-custom-component 或


Version published
Maintainers
2
Created

Readme

Source

WeKey扫码组件使用说明

npm i @trustasia/wekey-react 或

yarn add @trustasia/wekey-react 

使用示例

import { WeKeyQrcode } from '@trustasia/wekey-react';
// css 文件中引入
@import '@trustasia/wekey-react/dist/wekey-react.cjs.development.css';

<WeKeyQrcode
  getImgApi='/ta-demo/wekey/register/qrcode'
  ewmParams={{
    name: form.getFieldValue('name')
  }}
  tip='用WeKey APP扫描二维码,将您的手机设置为认证器。'
  getQrcodeResultApi='/ta-demo/wekey/register/result'
  successCallback={() => {
    message.success('扫码成功!!!!!')
  }}
  showResult={true}
/>

参数说明

参数类型描述
getImgApistring生成二维码图片到接口地址
ewmParams?any获取二维码图片接口的入参
getQrcodeResultApistring获取扫码结果的接口地址
successCallback?any扫码成功回调函数
tip?string二维码头部提示信息
showResultboolean是否展示成功/失败结果内容
timeDelay?number轮询时间,默认为3s,当值小于1s时,算1s

Keywords

FAQs

Package last updated on 14 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc