I am new to firebase and I have followed the basic tutorials to implement an app with username/password authentication as well as Google authentication.
This obviously allows me to log on to an application but I want to register a user and assign them a specific role. As an example I might have two types of users in an application, a buyer and a seller or someone requesting a service and a service provider. I have a basic registration page for email/password users which I could potentially add in an extra field to indicate what type of user they are but I am not sure how to implement a registration page for federated identity providers such as google and twitter.
How do I register a user with specific roles using one of these providers?
I have searched for examples but I haven't been able to find what I am after.