Comment on page
15. Admin Setup
To assign yourself as an admin of the app and to get access to your admin panel, follow the below steps:
- In the app, sign up using your email and password (not with social logins like google, FB, or apple).
The email you will use to signup, it will be the admin email and password.
- After creating the account, now go to your firebase console > your_app > firestore database and then you will see that a collection named users has been created.
- Now click on your document and then create a field by role and then select type as an array and then in the first array enter the admin keyword and then click on the Add button.
That’s it, Your admin setup has been completed. You can now login into your admin panel and add content. In this way, you can assign anyone as an admin of your app.
Last modified 9mo ago