
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.