Google OAuth2 credentials become inacative after a while

Describe the problem/error/question

I am using Google nodes, e.g. Google Drive and Google Sheets. I have created the credentials for OAuth2 and this is working for the first time. But after a couple of days the connection becomes inactive, the workflow fails because I need to authenticate manually again.

In the workflow node everything looks fine but the node produces an error:
image

The credentials look good, status “Account connected”:

But the account is not connected and I need to reconnect. Doing so I receive a message that the app is not verified (probably this is the problem):

When I reconnect then everything is working fine. But my workflow that shall run automatically on a monthly basis does only work with manual intervention.

How can I maintain the connection with the Google credentials for a longer period of time?

What is the error message (if any)?

Error



## Information on your n8n setup
- **n8n version:** 1.16.0
- **Database (default: SQLite):**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** npm
- **Operating system:** Windows 11 Pro

Hey @pghahrem

How did you configure your Google OAuth Consent Screen?
If you haven’t published your App, Google terminates the Authorization after 7 days.

Hi ria,

I made a verification request for the OAuth Consent Screen at Google. They asked me for:

• The justification you provided in your Cloud Console submission does not sufficiently explain why the requested OAuth scopes are necessary.
→ when I told them I am using the app only within my company they said I don’t need verification

• We are unable to log in and test your application.
→ they have not access to n8n. How shall they test the app?

So I am not coming forward with this.

br,
Patrick

Any ideas how this can be solved? Guess I am not the only one using Google nodes in n8n.

Hey @pghahrem,

I have mine set to the below and it works for me, Are you able to do to the same thing or does Google prompt you for more info?

Hi Jon, I made now the same settings. Let’s see whether for the next scheduled run it will work. Thanks for the information provided.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.