auth/network-request-failed 🔐 Authentication

Firebase Auth: auth/network-request-failed — A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred

The Firebase Auth SDK couldn’t reach Google’s servers — offline, blocked by an extension/firewall, or (on Android emulators) missing Play Services/network.

Seen on: REST API

Meaning

Ad blockers and privacy extensions block identitytoolkit.googleapis.com, corporate networks block Google APIs, emulators without internet, and CSP rules that don’t allow the endpoints cause this.

Common causes

  • Device/emulator offline
  • Ad blocker/privacy extension blocking Google endpoints
  • CSP connect-src missing Google domains
  • Auth emulator configured but not running

⚡ Quick fix

  1. Test in an incognito window without extensions
  2. Allow https://identitytoolkit.googleapis.com and https://securetoken.googleapis.com in CSP
  3. Start the emulator or remove connectAuthEmulator

Detailed fix by platform

HTML

  1. <meta http-equiv="Content-Security-Policy" content="connect-src 'self' https://identitytoolkit.googleapis.com https://securetoken.googleapis.com">

How to diagnose

  1. Network — Requests blocked in DevTools?
  2. Extensions — Disabled test?
  3. Emulator — Running?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.