Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@kaistseo/react-native-sms-user-consent
Advanced tools
use the SMS User Consent API to request user consent to read a single SMS verification message (forked from genyaonipko/react-native-sms-user-consent)
The SMS User Consent API complements the SMS Retriever API by allowing an app to prompt the user to grant access to the content of a single SMS message. When a user gives consent, the app will then have access to the entire message body to automatically complete SMS verification.
$ yarn add react-native-sms-user-consent
CLI autolink feature links the module while building the app.
$ react-native link react-native-sms-user-consent
Include the Play Services auth component in your app's build.gradle file:
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.android.gms:play-services-auth-api-phone:17.4.0'
import SMSUserConsent from 'react-native-sms-user-consent';
interface SMSMessage {
receivedOtpMessage: string
}
getSMSMessage = async () => {
try {
const message: SMSMessage = await SMSUserConsent.listenOTP()
} catch (e) {
// error
}
}
removeSmsListener = () => {
try {
SMSUserConsent.removeOTPListener()
} catch(e) {
// error
}
}
FAQs
use the SMS User Consent API to request user consent to read a single SMS verification message (forked from genyaonipko/react-native-sms-user-consent)
The npm package @kaistseo/react-native-sms-user-consent receives a total of 1 weekly downloads. As such, @kaistseo/react-native-sms-user-consent popularity was classified as not popular.
We found that @kaistseo/react-native-sms-user-consent 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.