Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getUid(email) {
- db.collection("users").where("email", "==", email)
- .get()
- .then(function(querySnapshot) {
- querySnapshot.forEach(function(doc) {
- return doc.id;
- });
- })
- .catch(function(error) {
- return error;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement