Skip to content

Script to create an admin account  #13

@tbharathchandra

Description

@tbharathchandra

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions