0

I am looking to build an app where the only way a new user can enter the app is if they have been invited by an existing user. Are there any API's, tutorials or resources that can help me achieve this. I am using Firebase as my backend and I know it has phone number verification, but I want only invited users to be given an access code to access the app.

closed as off-topic by Philip Kendall, Blrfl, gnat, BobDalgleish, Robert Harvey Apr 17 at 16:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking for assistance in explaining, writing or debugging code are off-topic here. These can be asked on Stack Overflow if they include the desired behavior, a specific problem or error, and the shortest code necessary to reproduce it in the question (see Minimal, Complete, and Verifiable Example)." – Philip Kendall, Blrfl, gnat, Robert Harvey
If this question can be reworded to fit the rules in the help center, please edit the question.

2

If registration is only possible by invitation, then there are a few possibilities:

  1. Your registration page asks for an invitation code. Such a code could only be generated and sent by a logged-in user and should be one-time-use.

  2. As part of the invitation, you send a one-time-use link to a "registration page". I put the registration page in quotes, because you might also do the user creation part when sending the invitation and then use the password recovery mechanism of your framework to complete the registration process.

Not the answer you're looking for? Browse other questions tagged or ask your own question.