Decoding Firebase ID token failed Authentication Origin: Application & API OSI layer 7 · Application Last updated 28 Nov 2026

Firebase Admin: Decoding Firebase ID token failed. Make sure you passed the entire string JWT

The server received something that is not a complete Firebase ID token.

Exact message you may see Decoding Firebase ID token failed
Seen on: Firebase Node.js

Meaning

A truncated value, a custom token or access token instead of an ID token, or the Bearer prefix included causes this.

Common causes

  • Custom token used
  • Prefix not stripped
  • Truncated value

⚡ Quick fix

  1. Pass the full ID token
  2. Strip Bearer

Detailed fix by platform

Node.js

  1. admin.auth().verifyIdToken(idToken)

How to diagnose

  1. Type — ID token?
  2. Prefix — Stripped?
  3. Length — Complete?

🔧 Still not fixed?

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

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

APNs — FCM: THIRD_PARTY_AUTH_ERROR — APNs credentials missing or invalid (iOS push not delivered) (Google Cloud / Firebase)APNsApp Check — Firebase App Check: requests rejected (403 / app-check-token-is-invalid / attestation failed) (Google Cloud / Firebase)App Checkauth/account-exists-with-different-credential — Firebase Auth: account exists with a different credential (same email, other provider) (Google Cloud / Firebase)auth/account-exists-w…auth/email-already-in-use — Firebase Auth: auth/email-already-in-use — The email address is already in use by another account (Google Cloud / Firebase)auth/email-already-in…auth/invalid-api-key — Firebase: auth/invalid-api-key — Your API key is invalid, please check you have copied it correctly (Google Cloud / Firebase)auth/invalid-api-keyauth/invalid-credential — Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials) (Authentication)auth/invalid-credenti…auth/invalid-custom-token — Firebase Auth: auth/invalid-custom-token — The custom token format is incorrect or the token is invalid (Google Cloud / Firebase)auth/invalid-custom-t…auth/network-request-failed — Firebase Auth: auth/network-request-failed — A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred (Authentication)auth/network-request-…Decoding …

Explore the map of this error Full error map →

🧠 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.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.