
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@trustasia/wekey-react
Advanced tools
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}
/>
| 参数 | 类型 | 描述 |
|---|---|---|
| getImgApi | string | 生成二维码图片到接口地址 |
| ewmParams | ?any | 获取二维码图片接口的入参 |
| getQrcodeResultApi | string | 获取扫码结果的接口地址 |
| successCallback | ?any | 扫码成功回调函数 |
| tip | ?string | 二维码头部提示信息 |
| showResult | boolean | 是否展示成功/失败结果内容 |
| timeDelay | ?number | 轮询时间,默认为3s,当值小于1s时,算1s |
FAQs
``` install yarn add trustasia-custom-component 或
We found that @trustasia/wekey-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.

Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.