firebase auth create user with email and password code example
Example: firebase sign up with email and password
firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // ...});email-password.html