Role based authentication with Ionic & Firebase

Опубликовано: 04 Май 2026
на канале: Jorge Vergara
3,643
61

In this short video you'll see how to show different sections of your app to different kind of users (i.e: admin users vs regular users)

Things to note:

Authentication and the Firestore database aren't connected, so we need to store the admin variable in the database ourselves.
We use the *ngIf directive to hide/show the block of content in our app.
We fetch the admin variable from the database and pass it to the *ngIf directive.