Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
rn-android-otp-retriever
Advanced tools
A react native wrapper for the SMS User Consent API to request user consent to read a single SMS verification message sent by any phone number or from a specific phone number if required. If the user consents, the API returns the text of the message, fro
A react native wrapper for the SMS User Consent API to request user consent to read a single SMS verification message sent by any phone number or from a specific phone number if required. If the user consents, the API returns the text of the message, from which you can get the verification code and complete the verification process.
NPM:
npm install rn-dynamic-app-icon
YARN:
yarn add rn-dynamic-app-icon
import { getOtp, getSms, SMSRetrieverErrors } from 'rn-android-sms-retriever';
// Read the next SMS
const readNextSmsRequest = async () => {
try {
const sms = await getSms(/*option sender's phone number*/);
} catch (e) {
if (e.toString().includes(SMSRetrieverErrors.CONSENT_DENIED)) {
console.log('User denied SMS read request');
}
}
};
// Read OTP from SMS
const readNextOtpRequest = async (otpLength) => {
try {
const sms = await getOTP(otpLength, /*optional sender's phone number*/); //Can only read numeric OTP values
} catch (e) {
if (e.toString().includes(SMSRetrieverErrors.REGEX_MISMATCH)) {
readNextOtpRequest(otpLength);
}
}
};
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Built by true-hamid & mustfaibra
FAQs
A react native wrapper for the SMS User Consent API to request user consent to read a single SMS verification message sent by any phone number or from a specific phone number if required. If the user consents, the API returns the text of the message, fro
We found that rn-android-otp-retriever 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.