
Research
/Security News
PolinRider Spreads Through Compromised GitHub Accounts and Packagist
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.
numberauthsdk_web
Advanced tools
提供三网号码认证功能
项目启动
tnpm install // 安装依赖
tnpm start // 项目启动
tnpm run build // 打包
接口说明
// 初始化实例
const { PhoneNumberServer } = window;
this.phoneNumberServer = new PhoneNumberServer();
this.phoneNumberServer.setLoggerEnable();
参数说明
| 参数名称 | 参数说明 | | --- | --- | --- | | isEnable | 是否开启 true/false|
const sdkVersion = this.phoneNumberServer.getVersion(); // 返回sdk版本号 eg: '1.0.0'
this.phoneNumberServer.checkAuthAvailable({
phoneNumber: '151********',
accessToken: 'XXXXXXXXxx',
jwtToken:'******',
success:function(res){
console.log(res.jwtToken);
console.log(res.accessToken);
},
error: function(res){
}
});
| 参数名称 | 参数说明 | | --- | --- | --- | | phoneNumber | 本机号码 | | accessToke | 号码认证业务鉴权token(由阿里云对外暴露的getToken 接口生成) | jwtToken | API网关认证token(由阿里云对外暴露的getToken 接口生成) | | success | 成功回调| | error | 失败回调|
this.phoneNumberServer.getVerifyToken({
success:function(res){
console.log(res.
},
error: function(res){
}
});
| 参数名称 | 参数说明 | | --- | --- | --- | | success | 成功回调| | error | 失败回调|
| 参数名称 | 参数说明 | | --- | --- | --- | | code | 成功6000(其他详见错误码) | | spToken | 运营商token | | content | 失败时运营商返回的内容 |
| 返回码 | 返回码说明 | | --- | --- | --- | | 600000 | 成功的返回code | | 600010 | 未知异常| | 600011 | 获取token失败| | 600013 | 运营商维护升级,该功能不可用 | | 600014 | 运营商维护升级,该功能已达最大调用次数| | 600015 | 接口超时 | | 600025 | 接入方身份信息校验失败 | | 600008 | 环境错误(未在蜂窝网络下使用或未使用手机浏览器)|
FAQs
The npm package numberauthsdk_web receives a total of 9 weekly downloads. As such, numberauthsdk_web popularity was classified as not popular.
We found that numberauthsdk_web 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.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.