How can I enable multiple users to login using OTP on one mobile device using react-native - 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?

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

Google Play Games - How to ask the user to create a gamerId account when signin in

When a user signs in my web based game with Google SignIn through a web browser, access is granted. However, when the app makes a call to the Games Services API, it returns the following error:
User registration incomplete
If the user goes then to the Android Play Games app and creates a Gamer ID account, it works.
So, is there any way to tell the user to create a Gamer ID account when she signs in if she wants to proceed? Or, better, can Google redirect her to a page for that, complete the process and then come back to the app?
The Gamer account (also sometimes informally referred to as Games lite account) can only be created on Android devices. Once it is created it can be accessed from other platforms.

Check if google account has been verified by phone

I want to make login with google in my android application but I want to let do this only using google accounts that has been verified by phone (via voice or sms)
https://support.google.com/accounts/answer/63950?hl=en
Is there any way to check through API if google account has been verified by phone?
No, that isn't possible. If you're concerned about account creation abuse, Google has top notch abuse team that is on top of spammers, fake accounts and other abuse related account creations. That is one of the reasons to use a social auth provider like Google in that you don't have to provide that abuse checking on your own.

What are the dangers of tying one Facebook UID to multiple application accounts / tokens?

I'm getting started with a mix of Facebook Registration and Facebook Connect and wondering if there's a problem with my existing users foo#bar.com and bar#foo.com both connecting their accounts on my site to the same Facebook UID.
I can guess that if foo#bar.com connects to Facebook through my application, then bar#foo.com might have to re-authenticate because my application would use a different token for the same Facebook UID the second time. Would Facebook somehow reject the use of multiple tokens from my application?
To be clear - I know I can control whether or not the uniqueness is a problem in my database, I'm mostly trying to anticipate how Facebook will treat multiple different requests from the same application and if there might be any problems in how the application behaves.
Your question is so fogy. What you actually want to do? When you want to connect with facebook, it means you allow users to login in your system with their facebook accounts. So authentication will be done at facebook end. I am unable to understand your double ID phenomenon. What do you mean by two different ID's?

Allow user to create account on one device and use that account on others

I want to make an application that has some views for information display. If I install my app on my iPhone then it should display the info. If I then install that app on my iPad then the app should recognize the device and display the info related to my account.
Is there any way to find the single user of two devices without the user's iTunes credentials, or is it possible to generate a key that can identify the common user of both devices?
No, currently there is no way to associate multiple devices to a single user owning those devices given the information you've provided.
However, if you added, "the information I want to display in the views, pertains to the same user account in Game Center for both devices", then you could use the player's identifier from Game Kit API.
https://developer.apple.com/game-center/
This is being added well after the fact, but:
You could use iCloud APIs to accomplish this. These are distinct from iTunes credentials, but obviously the same type of prerequisite in that the user must have an account and it's not under your control.