0

We are using Firebase on our project and we want only users who recieved an email invitation to be able to access register page and create a profile afterwards. Can you do that using firebase?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Dimana.N
  • 13
  • 3

1 Answers1

0

There is nothing built into Firebase Authentication to allow only users you've invited to sign up. When the email+password provider is enabled, anyone can call the API and register.

What you can do though is have a list of the invited email addresses in an online database somewhere (such as Firebase's Realtime Database of Firestore) and check against that list whether a user is authorized after they have signed in.

For an example of how to limit access to the database to specific users, have a look at:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807