From c967070e7caae3cd40d76958525be6c4e8ff9d80 Mon Sep 17 00:00:00 2001 From: Alex Komoroske Date: Sat, 20 Apr 2024 15:55:41 -0700 Subject: [PATCH] Switch to signInWithPopup. This is a bit of an annoying UI but is better than doing the more confusing options to keep signInWithRedirect. Part of #693. --- src/actions/user.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actions/user.ts b/src/actions/user.ts index f5a57ddb..5e28cca3 100644 --- a/src/actions/user.ts +++ b/src/actions/user.ts @@ -3,8 +3,8 @@ export const AUTO_MARK_READ_DELAY = 5000; import { GoogleAuthProvider, signInWithCredential, - linkWithRedirect, - signInWithRedirect, + signInWithPopup, + linkWithPopup, signInAnonymously, signOut as firebaseSignOut, getRedirectResult, @@ -195,11 +195,11 @@ export const signIn = () : ThunkSomeAction => (dispatch, getState) => { console.warn('Unexpectedly didn\'t have user'); return; } - linkWithRedirect(user, provider); + linkWithPopup(user, provider); return; } - signInWithRedirect(auth, provider).catch(err => { + signInWithPopup(auth, provider).catch(err => { dispatch({type:SIGNIN_FAILURE, error: err}); });