Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
easy-tencent-captcha
Advanced tools
专门针对腾讯防水墙做了一些简单的封装,理论上react和vue都可以用.
npm i easy-tencent-captcha --save
import Captcha from 'easy-tencent-captcha'
const captcha = new Captcha({
appId: 'xxxxx'
})
// 方法 1
captcha.showCaptcha({
success (res) {
console.log(res) // {bizState: xxx, appid: "xxx", ret: 0, ticket: "xxx", randstr: "xxx"}
}
})
// 方法 2
try {
const res = await captcha.showCaptcha()
console.log(res) // {bizState: xxx, appid: "xxx", ret: 0, ticket: "xxx", randstr: "xxx"}
} catch (err) {
console.log(err)
}
调起验证框
option | params | 备注 |
---|---|---|
success | res | 用户验证成功回调 |
error | err | 一般是用户关闭窗口回调 |
关闭验证框
获取验证码验证成功后的ticket
const res = await captcha.getTicket()
console.log(res) // {"appid":"","ticket":""}
FAQs
plugins for tencent-captcha
The npm package easy-tencent-captcha receives a total of 0 weekly downloads. As such, easy-tencent-captcha popularity was classified as not popular.
We found that easy-tencent-captcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.