Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a backend route to create admin users by setting the role in firebase as "admin" (ask Adhithya on how roles currently work) #142

Open
Tracked by #125
AmanKAggarwal opened this issue May 19, 2023 · 0 comments
Labels
epic:login-portal Issues for Login Flow on ADMIN Portal launch:v2 product:admin-portal Issues involving admin portal stack:backend All issues strictly involving backend work has this tag

Comments

@AmanKAggarwal
Copy link
Collaborator

AmanKAggarwal commented May 19, 2023

To create admin users, we don't need to provide any UI but we do need a very simple route which just takes in an email and password and registers the user with firebase and sets the role for the user on firebase as "admin"

Request

POST admin
{
    email: <email>,
    password: <password>,
}

Response

Admin created with ID "blah"
@AmanKAggarwal AmanKAggarwal added stack:backend All issues strictly involving backend work has this tag product:admin-portal Issues involving admin portal epic:login-portal Issues for Login Flow on ADMIN Portal launch:v2 labels May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic:login-portal Issues for Login Flow on ADMIN Portal launch:v2 product:admin-portal Issues involving admin portal stack:backend All issues strictly involving backend work has this tag
Projects
None yet
Development

No branches or pull requests

1 participant