Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function getUid(email) {
  2. db.collection("users").where("email", "==", email)
  3. .get()
  4. .then(function(querySnapshot) {
  5. querySnapshot.forEach(function(doc) {
  6. return doc.id;
  7. });
  8. })
  9. .catch(function(error) {
  10. return error;
  11. });
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement