Google OAuth: Error 401: deleted_client — The OAuth client was deleted
The OAuth client ID used in the request has been deleted from the Google Cloud project.
Error 401: deleted_clientThe OAuth client was deleted Meaning
Deleted clients stay invalid; you must create a new OAuth client and update the client ID/secret everywhere (apps, google-services.json, environment variables).
Common causes
- OAuth client deleted in Google Cloud Console
- Project deleted or shut down
- Old client ID left in a build/config
⚡ Quick fix
- Create a new OAuth client ID
- Update configs (web, Android/iOS plists, Firebase)
- Restore the project within 30 days if it was deleted
Detailed fix by platform
Google Cloud
# APIs & Services → Credentials → Create credentials → OAuth client ID
How to diagnose
- Client — Exists in Credentials?
- Config — Which ID is the app using?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Authentication
- invalid_token invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed)
- redirect_uri_mismatch OAuth Error: redirect_uri_mismatch
- auth/too-many-requests Firebase Auth: auth/too-many-requests — Access to this account has been temporarily disabled due to many failed login attempts
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 13 Oct 2026