Diagnosing Firebase 401 / invalid_token Errors When Verifying ID Tokens
When a backend API rejects Firebase Auth ID tokens with 401 or invalid_token, the problem often lies in token expiration, clock skew, project mismatch, or revocation. This guide walks through a structured diagnostic flow, shows how to inspect the token, and lists fixes and escalation steps.