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.