
Security News
New Study Identifies 53 Slopsquatting Targets Across 5 Frontier LLMs
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.
aliyun_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 aliyun_numberauthsdk_web receives a total of 137 weekly downloads. As such, aliyun_numberauthsdk_web popularity was classified as not popular.
We found that aliyun_numberauthsdk_web demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.

Security News
The White House’s Gold Eagle Initiative aims to coordinate AI-discovered vulnerabilities, validate findings, and accelerate patching across critical software.

Security News
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.