From 60da1c756ea13e8ac20d58e4070326349482b6f2 Mon Sep 17 00:00:00 2001 From: Michelle Liang <114553291+michellewliang@users.noreply.github.com> Date: Fri, 10 Nov 2023 13:17:47 -0500 Subject: [PATCH] fix email console log --- frontend/src/common/redux/userLogin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/common/redux/userLogin.ts b/frontend/src/common/redux/userLogin.ts index 169e7bccd..7c7656014 100644 --- a/frontend/src/common/redux/userLogin.ts +++ b/frontend/src/common/redux/userLogin.ts @@ -293,7 +293,7 @@ export const signInViaGoogleRedirect = createAsyncThunk< try { const googleProvider = new GoogleAuthProvider(); await signInWithPopup(auth, googleProvider); - console.log(googleProvider); + console.log(auth.currentUser.email); //await signInWithRedirect(auth, googleProvider); return; } catch (e) { @@ -313,7 +313,7 @@ export const signInViaGithubRedirect = createAsyncThunk< const githubProvider = new GithubAuthProvider(); storage.setItem("expect-user", "true"); await signInWithPopup(auth, githubProvider); - console.log(githubProvider); + console.log(auth.currentUser.email); //await signInWithRedirect(auth, githubProvider); //TODO: Replace with signInWithRedirect: https://firebase.google.com/docs/auth/web/redirect-best-practices return;