Google Credentials stop working after a while even in production

I’ve seen multiple posts on Google Credentials stop working after a while.
Mostly, the issue is when the Google client is in the “testing” mode.

Therefore, I put mine to “Production” mode and it seemed like the issue was solved… until yesterday when it stopped working again.

What could be the issue here and how can I solve it?

(I shared the concern here as well, but decided to post new topic to bring attention)

What is the error message (if any)?

Share the output returned by the last node

{
  "errorMessage": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
  "errorDetails": {},
  "n8nDetails": {
    "time": "4/9/2025, 4:24:19 PM",
    "n8nVersion": "1.84.1 (Self Hosted)",
    "binaryDataMode": "default",
    "cause": {
      "message": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.",
      "timestamp": 1744183459566,
      "name": "NodeApiError",
      "context": {},
      "cause": {
        "body": {
          "error": "invalid_grant",
          "error_description": "Token has been expired or revoked."
        },
        "code": "EAUTH"
      }
    }
  }
}

Information on your n8n setup

  • n8n version: 1.84.1 (Self Hosted)
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Self hosted on Digital Ocean

After changing it to production mode, you might have to renew the token one last time. Then it shouldn’t expire anymore.

Okay let me give this a try and follow up in a week! Thanks!

1 Like

Awesome. You can bookmark this topic or some reply here to remind you in a certain date. Hope it works this time :facepunch:

1 Like

Hi,
Did this solve the issue? I am also looking to fix the issue with Google credentials failing every few days.