0
votes

I am using Reactjs with firebase SDK for authentication with google auth it's all working just fine on the development server link and also working on the link http://localhost:3000/ and also on firebase hosting link https://pro--student.web.app/ but when i access the website from the domain that i added to firebase hosting settings https://prostudent.ga the authentication does not work so i am pretty sure that the code is fine the problem is only somewhere on the domain can anyone help me solve this ? this is the authentication code is you want it

auth.signInWithPopup(googleProvider)
    .then((result) => {
      // The signed-in user info.
      var user = result.user.providerData[0];
      store.dispatch({ type: actions.SIGNIN, payload: user });
    })
    .catch((error) => {
      alert(error.message);
    });

and this is an image of my hosting infos https://i.stack.imgur.com/0mqWF.png

1
MXToolbox is reporting an invalid DNS configuration for that domain. In the domains for Hosting, click that "View" button to complete the setup.samthecodingman
Yes, as @samthecodingman mentioned, even DNS Checker won't show any DNS records. Firebase requires you to add a TXT record for verification as well as couple of A records while setting up a domain. Make sure you have them set up correctly.Dharmaraj

1 Answers

0
votes

In the Firebase Console, ensure that your new custom domain is included in the list of Authorized Domains in the Firebase Authentication section in addition to being listed in the Project Domains in the Firebase Hosting section.