
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@gustash/react-native-smart-lock
Advanced tools
This package exposes Google Smart Lock for auto sign-in based on saved credentials.
$ npm install @gustash/react-native-smart-lock --save
$ react-native link @gustash/react-native-smart-lock
import SmartLock from '@gustash/react-native-smart-lock';
async function request() {
// You can also send a client server id as a paramenter as well
// const {error, success, ...credentials} = await SmartLock.request('some.server.id');
const {error, success, ...credentials} = await SmartLock.request();
if (error) {
console.error(error);
return;
}
if (success) {
// Account found. Do something with credentials.
const {
id,
password,
accountType,
familyName,
givenName,
name,
profilePictureUri,
idTokens,
} = credentials;
}
}
import SmartLock from '@gustash/react-native-smart-lock';
async function save() {
const credentials = {
id: 'some@email.com',
profilePictureUri:
'https://api.adorable.io/avatars/285/abott@adorable.png',
name: 'John Doe',
password: 'password',
};
const error = await SmartLock.save(credentials);
// The save method might be canceled if the system wants to give priority
// to the password manager UI instead.
if (error && error !== 'canceled') {
console.error(error);
}
}
import SmartLock from '@gustash/react-native-smart-lock';
async function deleteCredential() {
const error = await SmartLock.delete('some@email.com');
if (error) {
console.error(error);
}
}
import SmartLock from '@gustash/react-native-smart-lock';
// This disables request() until a new save() is called.
// You should call this on logout to allow the user to change accounts, for example.
SmartLock.disableAutoSignIn();
FAQs
Google Smart Lock for React Native
We found that @gustash/react-native-smart-lock 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.