Q:

Why firebase automatically closes my auth window? React - Firebase

I'm making the login system for a web and when I want to login with Google or Facebook it's works normally but my window closes and I can't login the user into my web.
See my auth code:
handleGoogleAuth = () => {
    const googleProvider = new firebase.auth.GoogleAuthProvider();
    firebase.auth().useDeviceLanguage();

    firebase.auth().signInWithRedirect(googleProvider);
    firebase
      .auth()
      .getRedirectResult()
      .then(result => {
        //const user = result.user;
      })
      .catch(error => {
        var errorCode = error.code;
        var errorMessage = error.message;

        alert(errorCode + ": " + errorMessage);
      });
  };

Or how can I open the login window in a new tab?

A:

If your browser blocks third party cookies this will happen. It might happen when you are using incognito tabs, explicitly block them or if you have some third party browser extension.

