Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active May 27, 2018 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/ba92935d07fa08d7e6bbdf02f13fd9a7 to your computer and use it in GitHub Desktop.
Save uno-de-piera/ba92935d07fa08d7e6bbdf02f13fd9a7 to your computer and use it in GitHub Desktop.
firebase.auth().createUserWithEmailAndPassword(email, password).then(user => {
let uid = user.uid; //5S4OMEglTUTQzbpE2GMnGJ5JCW42
});
firebase.auth().createUserWithEmailAndPassword(email, password).then(userCredential => {
let uid = userCredential.user.uid; //5S4OMEglTUTQzbpE2GMnGJ5JCW42
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment