Why Your n8n Google OAuth Connection Expires Every Week
Diagnose weekly Google OAuth failures in n8n. Check Testing status, identify the correct client, and verify the connection after reauthorizing.
If a custom Google OAuth connection in n8n works after reconnecting and fails again about a week later, check the OAuth app’s **Audience** settings. Google issues seven-day refresh tokens to External apps in Testing when they request scopes beyond basic sign-in information. A Google Sheets or Drive workflow can hit this rule. A failure near day seven is a clue. Confirm the setting and scope before changing anything.
Check which OAuth app actually issued the credential
- **Find the failing credential.** Open the failed execution and note the node, selected credential and sanitized error text. Use the time of the last authorization as your reference. A short-lived access token is routine. The refresh token is what lets n8n obtain another access token without asking you to sign in again.
- **Identify who owns the OAuth client.** If the credential uses a client you set up, locate that client in the corresponding Google Cloud project. Check the app’s user type and publishing status in Google Auth Platform. If your credential uses an n8n-managed sign-in option, follow the instructions for that credential or ask the workspace owner to confirm the setup. Changing an unrelated Google Cloud project will have no effect.
- **Choose the approved fix.** Reconnect the credential in n8n when you need to restore an expired test connection. Expect the same time limit while it remains subject to the Testing rule. For routine production use, have the OAuth app owner review the appropriate audience and publishing status, including any Google verification or Workspace approval that applies. Reauthorize with the intended account after an approved change and run a small read-only operation against the intended file.
- **Check other causes when the timing does not fit.** Google lists revoked access, long-unused refresh tokens and some admin restrictions among the reasons authorization may stop working. A redirect URI mismatch during sign-in points to the client configuration. A successful sign-in followed by denial on one spreadsheet calls for checking the file’s permissions and the credential’s scopes.
Fictional example: a weekly Sheets report
A team reconnects its reporting credential on Monday. The following Monday the first Google Sheets read fails. The credential belongs to a custom External app still in Testing, and it requests Sheets access. The team records the last approval time, restores the test connection, and asks the owner to review the production configuration. After reauthorizing under the approved configuration, they run a read against a test sheet and schedule a check after the original seven-day window. The first successful read confirms current access. The later check helps confirm the weekly failure has stopped.
Questions people ask
Does reconnecting stop weekly expiration?
It can restore access by obtaining a fresh grant. If the app remains External and in Testing with the same qualifying scopes, the new refresh token can still expire after seven days.
Does moving an app to production guarantee Google will never disconnect it?
No. The testing-specific time limit is one reason for expiration. Consent can still be revoked, and organizational controls or other token rules may apply. Keep the original error and authorization date so you can distinguish causes.
Should I create a new credential every time?
Start by identifying the credential the workflow already uses. Refresh or reconnect it through the supported authorization flow when appropriate. Repeatedly creating credentials makes it harder to trace which grant the workflow uses, and Google limits refresh tokens per account and client.