Firestore Auth
Create a form that allows new users to register with your app using their email address and a password. When a user completes the form, validate the email address and password provided by the user, then pass them to the createUserWithEmailAndPassword method:
Can use Firebase UI instead?
signInSuccessUrl: function(currentUser, credential, redirectUrl) {
// No redirect.
return false;