-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Currently, we are creating admin accounts manually. This will be a bit tricky for non-programmers so, we need a script that creates a user and corresponding doc in user collection with required fields. Doc id will be the admin's UID which is generated by Firebase auth.
Admin's doc in user collection should be:
- isAdmin - boolean - true
- isGuest - boolean - false
- pincode - number - 0
- cart - string - (leave empty)
- delivery - string - (leave empty)
- name - string - (your name)
- pNum - string - (your phone number)
This script should take Firebase keys, admin name, admin phone number, email and password as input and create the account.