From b17fb1f3f0da536f8d58b46897f6de09f216b46e Mon Sep 17 00:00:00 2001 From: Clayton Wilson Date: Wed, 23 Oct 2019 23:16:43 -0400 Subject: [PATCH] Update fbAuth so the user data from firebase is stored in req.userData --- functions/util/fbAuth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/util/fbAuth.js b/functions/util/fbAuth.js index 3b59d14..35253e7 100644 --- a/functions/util/fbAuth.js +++ b/functions/util/fbAuth.js @@ -32,6 +32,7 @@ module.exports = (req, res, next) => { .then((data) => { req.user.handle = data.docs[0].data().handle; // Save username req.user.imageUrl = data.docs[0].data().imageUrl; + req.userData = data.docs[0].data(); // Stores all user data from the database return next(); }) .catch((err) => {