Google Workspace APIs · api · fg-0024

Google refresh token dies every 7 days with invalid_grant

If you see invalid_grant, the cause and the fix for Google Workspace APIs are below, last verified 2026-08-11.

Verified Aug 2026trust 50/100
Symptom
invalid_grantAgent works for a week after re-authorizing, then fails again
Cause
While the OAuth consent screen's publishing status is Testing, Google expires refresh tokens after 7 days.
Fix
Publish the consent screen to Production. For a private app this shows an unverified app warning once at sign-in, which is acceptable. If invalid_grant appears on a published app, the token was revoked; mint a new one.
Apply
Google Cloud console > Google Auth Platform > Audience > Publish app (older console layout: APIs & Services > OAuth consent screen)
Affected
Google OAuth 2.0, June to August 2026

Last verified 2026-08-11 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun