Urgent.News

What's breaking now, across hundreds of outlets.

More in Finance & Markets

Firebase "auth/unauthorized-domain": the fix for Google sign-in that works on localhost but not in production

Google sign-in works on localhost, then you deploy and get: FirebaseError: Firebase: Error (auth/unauthorized-domain). The popup closes or the redirect fails, and only on your live domain.

  • "Firebase auth/unauthorized-domain" error occurs only on live domain, not localhost
  • Add exact failing domain to Firebase console Authentication settings
  • Include both www and non-www variants, match authDomain and projectId

More from Saturday, 28 November 2026 →