Skip to content

Instantly share code, notes, and snippets.

@alaingoldman
Created September 12, 2017 00:04
Show Gist options
  • Select an option

  • Save alaingoldman/2ee1b77643159d7c237ff296fc782187 to your computer and use it in GitHub Desktop.

Select an option

Save alaingoldman/2ee1b77643159d7c237ff296fc782187 to your computer and use it in GitHub Desktop.
firebase.auth().createUserWithEmailAndPassword("[email protected]","uniquepasword123*").then(user => {
var yao = firebase.database().ref('profiles');
var profileDeets = {
name: "dude"
};
yao.child(user.uid).set(profileDeets).then(function(e){
alert("worked...");
}).catch(e => {
alert(e.message);
})
}).catch(e => {alert(e.message)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment