I want to implement different user roles in my project using firebase. To just have invited team members in the projects I wanted to create a flow where the admin creates the new team member with email and a default password. I first create the authenticated user where I set the email and password. In the next action I want to create the project member user with the necessary information such as name and email. Because I couldn't do this with the users collection, I created the new collection "team members", but unfortunately the authentication creates a user just with email and password that is then authenticated and not the new document of team members. After the process the newly created team member is also logged in directly what I don't want (that is why I created the new team member collection). Instead the admin should remain logged in. Do you have any ideas I can try or is there a completely different way to do this?
Firebase: Multiple user Roles -> created user different than authenticated user
Database & APIs
Resolved
change the actions
try to do create users not team members
tried to not create a user with the authentication, but this created so many bugs I didn't pursue with that
Yes
2
1 reply