In this article, you’re going to learn how to set user roles using Auth Custom Claims and store user data to the Cloud Firestore when a new Firebase user account is created.
Then, I will be showing you how to guard vue routes based on user role when signing in.
Finally, I will teach you how to get all the user accounts at once when the signed-in user has admin privileges and change user roles using Firebase callable function.
Here are the 3 roles:
Up and Running With Vue.js in 5 minutes
#vue #firebase #security #developer