SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top