Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
rn-android-sms-retriever
Advanced tools
Readme
A react native wrapper for the SMS User Consent API to request user consent to read a single SMS verification message. 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-android-sms-retriever
YARN:
yarn add rn-android-sms-retriever
import { getOtp, getSms, SMSRetrieverErrors } from 'rn-android-sms-retriever';
// Read the next SMS
const readNextSmsRequest = async () => {
try {
const sms = await getSms();
} 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); //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. If the user consents, the API returns the text of the message, from which you can get the verification code and complete the verificatio
The npm package rn-android-sms-retriever receives a total of 0 weekly downloads. As such, rn-android-sms-retriever popularity was classified as not popular.
We found that rn-android-sms-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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.