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

**Code:** `Decoding Firebase ID token failed` · **Category:** Authentication · **Seen on:** Firebase, Node.js

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/auth/firebase-auth-argument-error)
