You built your app with Bolt, Cursor, Replit or another AI tool, with Firebase handling accounts. Sign in with Google worked while you were building. Then you published it, or connected your own domain, and new visitors press the Google button and nothing happens. The pop-up opens and closes, or the browser console shows auth/unauthorized-domain.
You may not notice, because you are already signed in, or because you only test on the preview address.
The short answer
Firebase only allows Google and other pop-up or redirect sign-ins from domains on your project's Authorized domains list. When your live site's address is not on that list, the Firebase sign-in code stops with the error code auth/unauthorized-domain and the message "This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console."
Your preview address may be on the list and your live address may not be. Every address you serve the app from counts separately, such as yourapp.com, www.yourapp.com and a host your AI tool gave you when you published.
Fix it
- Find the exact address. Open your live site and copy the host name from the address bar, for example
www.yourapp.com. You only need the host name, nothttps://, a path or a port. - Add it in Firebase. Firebase's docs say to go to Security, then Authentication, then the Settings tab in the Firebase console. In the Authorized domains section, click Add domain and add the host name. Add each address people use, such as both
yourapp.comandwww.yourapp.comif both open your app. - Try again in a private window. Open your live site in a private or incognito window and sign in with Google. You don't need to change code or redeploy to add a domain.
Two things to get right
- Don't add a whole platform domain. Firebase's sign-in code treats an authorized domain as also covering its subdomains. Adding a shared address such as a hosting provider's main domain would also allow other people's apps on that provider. Add your app's own host name instead.
localhostis not a live address. Firebase's docs say projects created after 28 April 2025 no longer includelocalhostas an authorized domain by default, and Google strongly discourages using it in production projects. If you only need it for local testing, keep it out of the project your real users sign in to.
Email links can fail for the same reason
If your app sends verification, password reset or sign-in links that bring people back to your site, Firebase's docs say the domain of that return address must also be on the authorized domains list. If it is not, the Firebase code returns auth/unauthorized-continue-uri. Adding your live domain in the same place fixes that too.
Using your own domain on the Google screen
Google's sign-in screen may show your project's firebaseapp.com address. That is normal and is not the same problem. Firebase's docs explain how to use your own domain there, and the steps differ depending on whether you host on Firebase Hosting, so follow Firebase's guide rather than changing authDomain by guesswork. If you use Supabase instead of Firebase, see our guide to Google login on your real domain.
Paste this into your AI tool
> Sign in with Google fails on my live site with auth/unauthorized-domain. Please tell me the exact host names my app is served from so I can add each one to Authorized domains in the Firebase console. Do not change authDomain or any other part of my Firebase config, and do not add a platform-wide domain or localhost to the production project. Also check any email action links, such as password reset, use a return address on my live domain.
Catch it before your users do
This kind of break is easy to miss because you are already signed in. Scheduled testing from FlowCanary is launching by 30 November 2026. Once it is live, it will test the flows a new visitor can do in your app, such as sign-up and checkout, in a real browser on a schedule, with logged-in flows on Pro, and tell you in plain English when one breaks, with a fix prompt for Lovable, Bolt, Cursor or Replit. Until then, the free check works today: paste your live URL and it opens the page in a real browser and reports JavaScript errors, failed requests and blank pages.