PinnedResolvedgmailoauthsetup

Gmail OAuth keeps expiring every 7 days. Is this normal?

3,421 views3 replies42 likes
SK
Sarah K.

Support Lead · FrontStreet Financial · Posted 20 days ago

Just set up Jarvis and connected my Gmail through the OAuth flow. Everything worked on day one. Seven days later I come back and Jarvis says 'auth_error' and asks me to reconnect. Reconnected it. Seven days later, same thing. Is there a setting I missed?

I'm on the Pro plan. Using a Google Workspace account.

3 Replies

Accepted answer
AJ
Amy (Jarvis Team)Staff20 days ago

Developer Advocate · DeskClone AI

Great question, Sarah. This one trips up a lot of people. The short version: if your Google Cloud project is in 'Testing' mode, refresh tokens expire every 7 days by Google's policy. It's not a Jarvis setting, it's a Google OAuth consent screen setting.

Fix:

  1. Go to Google Cloud Console for the project that issued your OAuth credentials
  2. OAuth consent screen > Publishing status
  3. Click 'Publish App' to move from Testing to Production
  4. You don't need to go through Google's verification if you're the only user of your own app, but Google will show a warning

Once in Production mode, refresh tokens don't expire unless revoked or unused for 6 months. Reconnect Gmail one more time after publishing and you're done.

67
SK
Sarah K.20 days ago

Support Lead · FrontStreet Financial

This was it. Published the app, reconnected, and it's been stable for almost 3 weeks now. Thank you.

12
JT
Jane T.14 days ago

MSP Lead

Confirming the same fix works for Google Workspace accounts too. Also worth noting: if your security team requires keeping the app in Testing mode, you'll need to automate a token refresh before the 7-day window.

18