n8n errors / Auth

invalid_grant: Token has been expired or revoked

platform: n8n / category: Auth

Cause

A Google OAuth2 refresh token is revoked, or the app is in 'Testing' status which limits test-user tokens to a 7-day lifespan.

Fix

Open the failing credential and click 'Reconnect' for a fresh token. To stop recurrence, set the Google OAuth consent screen to 'In production' (or 'Internal' for Workspace). For non-Google providers, ensure the Auth URI includes any required offline-access parameter.

Source thread →

Part of the Automation Error Index — n8n errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem