Adding users

Let's add users for our system

Go to Firebase console and in authentication menu item. Click "Get Started"

Select "Email/Password" in list.

Then, go to users tab and click "Add user".

Set login and password.

Add at least 2 users.

Then, login by this users in our system on localhost. After login will automatically create users collection in database.

Setting roles

Go to Cloud Firestore in Firebase console and to users collection. add role field with "admin" or "owner" string value.

Fill data in form as following:

Do the same for second user (for owner)

There are roles:

  1. admin

  2. owner

Last updated