Interesting tutorial by Jorge Vergara on how to use Firebase Cloud Functions to create an authentication listener on Firebase servers. The listener triggers every time a new account is created, and it creates the user profile for that account.
Continue reading here: https://javebratt.com/firebase-cloud-functions-profile/