From f107b8b5a11572e8e1de62a90c5f7c02c6d59d6b Mon Sep 17 00:00:00 2001 From: Ostend Suryajaya Date: Thu, 12 Sep 2024 01:32:03 -0700 Subject: [PATCH] Temporarily added prod debugging statements --- src/utils/auth_utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/auth_utils.js b/src/utils/auth_utils.js index f1da7c1..74347c9 100644 --- a/src/utils/auth_utils.js +++ b/src/utils/auth_utils.js @@ -184,10 +184,13 @@ const logInWithEmailAndPassword = async (email, password, redirectPath, navigate throw new Error('Please verify your email before logging in.'); } cookies.set(cookieKeys.ACCESS_TOKEN, auth.currentUser.accessToken, cookieConfig); - + console.log("Auth object"); + console.log(auth); //GET req to NPOBackend based on user identity from firebase const user = await NPOBackend.get(`/users/${auth.currentUser.uid}`); //if approved status is false, tell user to wait for approval + console.log("Look here"); + console.log(user); if (!user.data[0].approved) { throw new Error('Your account is currently under review. Please wait for approval.'); }