Google OAuth2 API credentials randomly fail every ~5 days - need help with persistent authentication

Hi everyone,

I’m experiencing a recurring issue with my n8n workflow where my Google OAuth2 API credentials stop working approximately every 5 days, even though everything was working fine before.

The Problem:

  • My workflow uses Google OAuth2 API authentication

  • Everything works perfectly after initial setup

  • After about 5 days, the authentication fails with the error shown in the screenshot: “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.”

  • I have to re-authenticate to get it working again

My Setup:

  • Using n8n version: [add your version here]

  • Authentication method: Google OAuth2 API

  • The workflow is set up to [briefly describe what your workflow does]

What I’ve Tried:

  • Re-authenticating (works temporarily but fails again after ~5 days)

  • [Add any other troubleshooting steps you’ve taken]

Has anyone experienced similar issues with Google OAuth2 credentials expiring or becoming invalid periodically? Any suggestions on how to make the authentication persistent would be greatly appreciated.

Thank you!

Hi @Maxim_Hrusha
This is the default settings coming from google when you’re in testing status,
All you need to do is set the publishing status to “Production”

1 Like

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