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.'); }