Permanent Google Cloud token?

I’m using the usual Google Cloud project to access Drive, Docs, and Sheets. The token expires quickly if the workflow isn’t used, becasue the app is still in test mode.
I added a scheduled action to refresh it constantly, but it doesn’t work. Why?
Is there another way to refresh a test token?

You can try switching the App from “Test” to “Production”**

In test mode, Google limits the token lifetime and auto-refresh often fails.. Go to Google Cloud Console > OAuth Consent Screen, then:

  1. Click “Publish App” to move it from “Testing” to “Production”.
  2. You don’t need verification if you’re only using it for internal accounts (under same domain or added testers).

:right_arrow: This is the best long-term fix. It allows longer token lifetimes and reliable refresh tokens.

OR

Manually Generate a Refresh Token That Doesn’t Expire Immediately

  • When in test mode, refresh tokens still expire quickly unless used within 7 days or used regularly.
  • Your scheduled action might not be calling the refresh flow correctly or frequently enough.

:right_arrow: Make sure your token refresh flow:

  • Uses the correct OAuth refresh_token grant method.
  • Executes before the token fully expires (at least once per hour).

Thanks, I forgot about the possibility to publish without verification!