How to use autofill otp like google's one-tap SMS verification with the SMS User Consent API in React Native - react-native

I'm trying to achieve phone number verification with the autofill feature in React native application. So far, I've discovered that there are 2 ways i.e either append hash key in sms body or use SMS User Consent API like https://developers.google.com/identity/sms-retriever/user-consent/overview
Is there any way/library through which we can avoid using the hash key?

Related

is it possible to authenticate with phone number without firebase with flutter?

I applied user authentication with phone number in my flutter app using firebase, but the SMS with the one time password service is limited to 50 SMS/day, so I wanted to find a way to authenticate by phone number without firebase. its possible
I tried searching for ways to authenticate with phone number but all the results I found were using firebase

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.
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
});

Kotlin - Autofill SMS without READ_SMS permission

I need to do a feature to read the OTP from SMS and fill my field.
The only way today to do it is using SMS Retriever API from Google?
Nothing without a 3rd party lib?
I mean, Apple has it native.
We are avoiding using Retriever API because we don't want to change the SMS template we have.
Is there something that I can do about it?
The only alternative that is available now is to use SMS consent API, other than that it's not possible to detect the SMS now.
You can check about this by following the below link
https://developers.google.com/identity/sms-retriever/user-consent/request

How can I enable multiple users to login using OTP on one mobile device using react-native

Example of UseCase: I am a teacher, with this mobile device. I need to create and enable 40 students to use the app, from their userIDs which are authenticated using my mobile number, as they do not have their mobile device with them in class. They might go back home and sign in from their devices, but they might also sign in from the teacher's device. They don't want to use a password. They prefer an OTP. How can we do this?
Context:
We work with youth in the community, and need to enable many of them to sign in to an app using OTP, using the same mobile device. How can we maintain the integrity of the user's digital identity while making login easy?
The react-native app allows users to create UserIds using OTP or Facebook or Google OAuth. While we can only sign in one user per mobile device, we have the requirement to get multiple youth to sign in using one device. They need not stay signed on. OTP seems to need a single mobile number, and not multiple unique user Ids to be created with one mobile number
How can we design the backend and code such that this need can be met?

How can I integrate otp verification in php while signup

I just wanted to integrate a sms otp verification method for verification while signup using msg91 not sendOTP. How can I do this kindly help.
To verify a phone number or OTP , you need to do it in three steps :
When user requests OTP or you generate it, you need to store the OTP in database or in memory with that phonenumber and the user.
Send that OTP to mobile number using MSG91's API(http://api.msg91.com/apidoc/textsms/send-sms.php#sendcontent)
When user inputs the received OTP, search that in the database with phonenumber and OTP,if found verify the user stored with that phonenumber and OTP
This is generally the process.
(You can find sample code for different languages using MSG91 here : http://api.msg91.com/apidoc/samplecode/php-sample-code-send-sms.php)