
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
react-native-nj-one-click
Advanced tools
阿里云一键登录,支持 android 和 ios
$ npm install react-native-nj-one-click --save
$ react-native link react-native-nj-one-click
import { initAuthSDKInfo, showOneKeyLogin } from 'react-native-nj-one-click';
// 弹出一键登录
showOneKeyLogin('', this.registerUrl, this.protectUrl, '', '', '', '', [
'oneKey_login_background',
]);
static initOneKeyLogin() {
initAuthSDKInfo(isIOS() ? IOS_ONE_KEY_LOGIN : ONE_KEY_LOGIN);
//点击其他登录事件
this.otherLoginListener = NativeAppEventEmitter.addListener(
'OTHERLOGIN',
() => {
this.goLoginPage();
},
);
//手机号 网络 卡 校验失败事件
this.errorLoginListener = NativeAppEventEmitter.addListener(
'ERRORLOGIN',
(result) => {
console.log(result);
if(isIOS){
if(result && result.checkBoxIsChecked=="0"){
showToast("请勾选协议");
}
}
// this.goLoginPage();
},
);
//一键登录校验成功事件
this.oneKeyLoginListener = NativeAppEventEmitter.addListener(
'ONEKEYLOGIN',
(result) => {
let token = result.token;
this.normalLogin = false;
Api.oneKeyLogin(token)
.then((resData) => {
// this.normalLogin = true;
loginHandler(resData);
backLoginBeforePage();
})
.catch((error) => {
this.normalLogin = true;
if (error === '100013') {
showSimpleAlert({
title: '当前账号已在另一台设备登录',
content:
'请您在【设置】-【安全设置】-【设备管理】中移除已登录的手机后再试',
confirmTxt: '知道了',
confirmPress: () => {
closeAlert();
},
});
}
// else {
// this.goLoginPage();
// }
});
},
);
}
FAQs
react-native-nj-one-click
The npm package react-native-nj-one-click receives a total of 74 weekly downloads. As such, react-native-nj-one-click popularity was classified as not popular.
We found that react-native-nj-one-click demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.