Skip to content

Commit

Permalink
fix email console log
Browse files Browse the repository at this point in the history
  • Loading branch information
michellewliang committed Nov 10, 2023
1 parent b2ca2f5 commit 60da1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/common/redux/userLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 60da1c7

Please sign in to comment.