1

I'm using Firebase studio to generate a small app, with Google Auth enabled. The app shows up fine, but when trying to use the Google Auth, like this:

async function logInWithGoogle(auth: Auth) {
    try {
      await signInWithRedirect(auth, provider);
    } catch (error) {
      console.error('Error signing in with Google: ', error);
      throw error;
    }
};

it throws a auth/unauthorized-domain error. I can add domains to my authentication settings in the Firebase console, but which one to add to make this working in the Firebase Studio integrated test browser?

I tried with the popup version as well (which works fine in my self-built Firebase code), but that throws an error that popups are blocked.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.