Firebase signInWithPopup() function, pop-up google sign in Window but the pop-up does not show any google accounts
I had same issue, i rebooted my mac and it worked perfectly. if that error still exists, try this:
instead of this
export const signInWithGoogle = () => auth.signInWithPopup(provider);
use this:
export const signInWithGoogle = () => auth.signInWithRedirect(provider);
If you want Firebase signInWithGoogle
to stop and ask which google account to sign in to before using the current auth token you will need to use the setCustomerParameters
method and manually invoke the prompt like so...
var provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
prompt: "select_account"
});
//works for signInWithPopup and signInWithRedirect
const signInWithPopup = () => auth.signInWithPopup(provider);
const signInWithRedirect = () => auth.signInWithRedirect(provider);
Link to setCustomerParameters
documentation