Role based authentication with Ionic & Firebase

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

good video. Would you have any tips on how to create different roles and use those roles. For example, I need to develop 6 roles shop, office, dispatch, customer, driver

peterjanzen
Автор

i keep getting this error NG0303: Can't bind to 'ngif' since it isn't a known property of 'ion-button'.

karimdong
Автор

Thank you sir, but how can I put two conditions in *ngIf because for expl one button I want to show it to admin and client but the employee can't see it

johnpmw
Автор

Thanks for the tip! How would you create a new "userProfile" document in firestore every time a sign up form is submited?

taylorelwell
Автор

Great video....you must continue make more videos

armandozabala
Автор

Sir, do you have a tutorial for uber-like app? i need one page for drivers and one page for user. (tracks where the driver is)

kissmuna
Автор

You need to public the repository link too please

allenxxXx