'Otp verification in react native
I want to implement auto fill otp in my react native app. i have implemented this using "react-native-otp-verify" but it requires hash to capture otp. I have found several other packages for this. All of them require a hash code in the sms to be able to read it. But i dont want to use hash.(Because i have not seen any hash code in otp sms of the daily use apps) Is there any package that can capture otp without using hash or if there is an alternative way of doing this. Please throw some light on this.
Solution 1:[1]
I have used an alternative way to detect incoming message , and you can extract your OTP from that message
you can use react-native-android-sms-listener library
SmsListener.addListener(message => {
//put your code to capture message & verify
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
