Google documents revocation conditions that include two cases you should plan for in trial logins: six months without use, and a password change while the credential holds Gmail scopes. Both are listed on Google's OAuth 2.0 page for accessing Google APIs.
- Case one — six months idle: The refresh credential has not been used for six months; this is about use, not creation date, so track last-use time rather than issue date.
- Case two — password change: The user changed passwords and the refresh credential contains Gmail scopes, which can revoke it.
- Handle invalid grant as reauthorization: Treat an invalid-grant error from your provider as a signal to route the user to a fresh consent screen, not as a system failure, and never surface the raw OAuth response.
- Explain the reconnect: Put plain copy on the consent screen so users understand why they are being asked to reconnect.
- Log with trial stage: Attach user and trial-stage context to every failed refresh so you can see where these failures sit in your funnel.
- Align win-back timing: Land re-engagement emails before the six-month idle line so returning users get a smooth reconnect rather than a hard wall.
What these two cases mean for your trial logins
The two cases are: the refresh credential has not been used for six months, and the user changed passwords while your app holds a refresh credential with Gmail scopes. Both are documented refresh credential revocation reasons on Google's OAuth 2.0 page for accessing Google APIs. Google for Developers explains them in its list of conditions under which Google may revoke a refresh credential. See Using OAuth 2.0 to Access Google APIs.
If you run sign-in and re-engagement for trial accounts at a software company, these two cases land squarely in your work. A trial user who signs up, connects a Google account, then goes quiet, can return later and find the connection dead. The same happens when someone changes their Google password mid-trial and the refresh credential contains Gmail scopes. Your job is to plan for both moments rather than treat them as bugs.
A refresh credential is what lets your app keep the user's session alive without asking them to sign in again every time an access credential expires. Google states plainly that a refresh credential allows your application to obtain new access credentials. That single line is the foundation of everything below. Without a working refresh credential, your app cannot mint new access credentials on its own, and the user has to reauthorize.
For marketers and growth leads, this is not an infrastructure problem alone. It is a re-engagement problem. The person who hits either case usually does so at the worst moment: they return to your product after weeks away, click a feature that needs their Google data, and get an error. If you have not planned for that path, you lose the session, the activation, and often the lead.
This post walks through both cases in plain terms. It shows what triggers each one, what your user experiences, and what you can build into sign-in and re-engagement so trial accounts stay alive. It stays close to what Google documents.
How a refresh credential works in your trial flow
A refresh credential works by trading one expiring access credential for a new one, using an additional credential called the refresh credential. That is the same pattern Slack describes in its rotation docs, where an OAuth flow with rotation involves exchanging one expiring access credential for a new one, using an additional credential: the refresh credential. See Using rotation.
In your trial flow, the first sign-in is where you request scopes. The user consents. From then on, each time the access credential expires, your backend calls Google with the refresh credential and receives a fresh access credential. The user sees nothing.
That silent renewal is why trial users expect the connection to just work. They connected Gmail once during onboarding. Weeks later, they open the product and expect the same access. When it breaks, the break feels sudden to them, even though the underlying cause may be months old.
Two things matter for your planning. First, the refresh credential is a separate object from the access credential, and it can stop working on its own. Second, Google can revoke it under specific documented conditions. Your sign-in design has to assume revocation will happen, not hope it will not.
Slack's rotation model also notes that after calling the oauth.v2.access API method, the refresh credential you used is revoked after a short grace period. That is a Slack-specific detail. It matters if your trial product also connects to Slack alongside Google, because Slack documents this grace-period behavior and your error handling has to cover it.
Case one: the refresh credential has not been used for six months
The first case to plan for is a refresh credential that has gone unused for six months. Google lists this as a revocation condition: the refresh credential has not been used for six months. See Using OAuth 2.0 to Access Google APIs.
Read that carefully. It is about use, not age. A credential created eighteen months ago is fine if it has been used recently. A credential created seven months ago fails if nothing has touched it in six months. For a trial product, this distinction shapes everything.
Consider your typical trial shape. A user signs up, connects Google, runs the product for two weeks, then either converts or drops. The converters keep using the refresh credential as part of normal activity. The droppers go quiet. Six months later, a win-back email brings one of them back. They click through, sign in, and your backend tries the refresh credential. It has not been used in six months. Google has revoked it.
What the user sees depends on how your app handles the failure. If you surface the raw OAuth error, they see something like an invalid_grant failure. Atlassian documents this error shape for its own OAuth 2.0 (3LO) apps: 403 Forbidden with an invalid_grant error described as an unknown or invalid refresh credential. See OAuth 2.0 (3LO) apps. Whatever error code your provider returns in this situation, the shape of the problem is the same: the refresh credential you hold is no longer valid.
For a growth lead, the planning question is what happens in that win-back moment. If your re-engagement flow assumes the old connection still works, the returning user hits a wall. They may not reauthorize. They may leave. The fix is to treat any six-month-idle account as needing reauthorization rather than a silent renewal.
Here is what to build. First, track the last time each refresh credential was used, not just when it was issued. Second, when a user returns after a long gap, check that timestamp before you attempt a silent refresh. Third, if the gap approaches six months, or if a silent refresh fails, route the user through a fresh consent screen instead of showing them an error.
The consent screen is not a penalty. It is the path back. A returning user who reconsents takes the consent screen path back, and the connection resumes. Your re-engagement email can even set expectations: tell them they may be asked to reconnect their Google account. That small piece of copy prevents the surprise that kills the session.
Here is the small table comparing the two cases side by side, built only from the conditions Google documents.
| Case | Trigger condition | When it hits your trial |
|---|---|---|
| Case one | The refresh credential has not been used for six months | A returning user after a long idle gap |
| Case two | The user changed passwords and the refresh credential contains Gmail scopes | A user who resets their Google password mid-trial |
Source: Using OAuth 2.0 to Access Google APIs.
Do not round the six months into a vague "long time" in your planning docs. The number matters because it defines your re-engagement window. If your win-back cadence sends its first email at three months and a second at five, you have room to reconnect before the six-month line. If your first win-back touch lands at eight months, you are already too late for a silent refresh and every reconnection becomes a full consent flow.
Ask your identity or platform team where they store the last-used timestamp for each refresh credential. That single field determines which path each returning user takes. Without it, you cannot tell a six-month-idle credential from an active one until you try it and fail.
Case two: password change with Gmail scopes
The second case to plan for is a user who changes their Google password while your refresh credential holds Gmail scopes. Google lists this as a revocation condition: the user changed passwords and the refresh credential contains Gmail scopes.
This one behaves differently from case one. It does not wait for idle time. The documented condition is a password change while the refresh credential holds Gmail scopes. An engaged trial user who connected Gmail on Monday, changes their Google password on Wednesday, and opens your product on Thursday can hit a revoked refresh credential.
The Gmail scope condition is specific. Google's language ties this revocation to refresh tokens that contain Gmail scopes. If your trial integration requests only non-Gmail scopes, this particular trigger does not apply to your credential in the same way.
For marketers, the timing is what hurts. Password changes often follow a security concern, a breach notice from another service, or a routine IT policy. The user is already in a sensitive moment. They come to your product, try to use it, and hit an auth failure. That is the worst moment to show a raw error.
Plan for this by building a detection-and-recovery path that does not depend on the user knowing what happened. When your backend attempts a refresh and the response shows the stored refresh credential is no longer valid, treat it as a reauthorization event. Route to consent. Do not show the raw OAuth response.
Here is where Atlassian's documented error shape helps you design the handler. Atlassian returns 403 Forbidden with an invalid_grant error and an error description of an unknown or invalid refresh credential when the credential is no longer valid. See OAuth 2.0 (3LO) apps. Your provider returns its own error payload, and the handler logic is the same: an invalid grant means stop trying the old credential and start a fresh consent.
There is a difference in user experience between the two cases that you should plan around. Case one is predictable. You can see the six-month gap coming and pre-empt it. Case two is not predictable from your side. You learn about it only when the refresh fails. That means your standing defense for case two is a fast, friendly reauthorization path that works every time, not a scheduled outreach.
Two practical steps. First, make sure your consent screen copy explains why the user is being asked to reconnect. A plain line like "Google requires you to reconnect after a password change" turns a confusing moment into a clear one. Second, log every invalid-grant failure with the user and trial stage attached, so you can see whether password-change revocations cluster at a particular point in the funnel.
Your lifecycle team should also know that this case can affect highly active users. If your re-engagement strategy only targets quiet accounts, you will miss this one entirely. An active user who changes their Google password mid-trial needs the same reauthorization path as a returning user after six months.
What your sign-in and re-engagement design should handle
Both cases point to the same design conclusion: a refresh credential in your system is a living credential with a defined end, and your trial flow needs a path for that end. Plan the path, do not plan around it.
Here is a checklist you can run against your current trial sign-in.
- Track last use. Store when each refresh credential was last used, not only when it was issued. This is what tells you a credential is approaching the six-month idle condition.
- Pre-check on return. When a user returns after a long gap, check the last-use timestamp before attempting a silent refresh.
- Catch invalid grant. Treat a failed refresh that shows the stored refresh credential is no longer valid as a reauthorization signal, not a system failure. Do not surface the raw OAuth response to the user.
- Explain the reconnect. Put a plain line on the consent screen so users understand why they are being asked to reconnect.
- Log with trial stage. Attach user and trial-stage context to every failed refresh, so you can see where these failures sit in your funnel.
- Align win-back timing. Make sure your re-engagement emails land before the six-month idle line, so returning users get a smooth reconnect rather than a hard wall.
That checklist covers both cases. Case one is addressed by the last-use tracking, the pre-check, and the win-back timing. Case two is addressed by the invalid-grant handler, the consent copy, and the logging.
One open question your team may need to settle: how your specific integration's scopes interact with Google's revocation conditions. Google documents the conditions; how your app requests and stores scopes is yours to confirm. Ask your identity or platform team to review your scope list against Google's documentation and confirm which revocation conditions apply to your credential set.
There is a second coordination point worth raising with your team. Slack's rotation revokes the used refresh credential after a short grace period once the oauth.v2.access method is called. See Using rotation. If your trial product connects to both Google and Slack, your renewal and error paths differ by provider. Design them separately rather than assuming one handler fits both.
For the Google side, keep the two cases separate in your planning docs. They share an error surface but differ in timing, predictability, and who they hit. Case one hits the returning, idle user. Case two hits the active user at a moment you cannot foresee. Your re-engagement calendar addresses case one. Your standing reauthorization path addresses case two.
How this fits your re-engagement calendar
Your re-engagement calendar is where case one lives. Case two lives in your standing product paths, because you cannot schedule around a password change.
Think about the trial lifecycle in terms of refresh credential health. At signup, the credential is fresh and active. Through the active trial period, normal use keeps it in good standing. After the trial ends and the user goes quiet, the clock on idle time starts. Six months of no use is the condition Google documents, so your calendar should have re-engagement touches well before that line.
If your current win-back cadence starts late, this is the argument for moving it earlier. A user who receives a re-engagement email at month four can click through, hit a still-valid refresh credential, and resume without friction. A user who does not return until month seven gets a consent flow instead. Both paths can recover the account, but the earlier one feels like continuity and the later one feels like a reset.
Case two does not appear on the calendar at all. It arrives through the product. A user changes their password on their own schedule, and your system learns about it at the next refresh attempt. The planning move here is not timing. It is making sure the reauthorization path is fast, clear, and available at every entry point where a trial user might land after a failed refresh.
For your team, the practical split is this. Lifecycle and re-engagement own case one: the timing, the messaging, the pre-check before you attempt a silent refresh on a returning user. Product and engineering own case two: the invalid-grant handler, the consent copy, the logging. Both owners should know both cases so neither treats a revocation as an unexpected edge.
One more coordination note. If your trial also connects to other providers, confirm the behavior for each provider rather than assuming Google's conditions apply everywhere. Google documents its own revocation conditions. Atlassian documents its own invalid-grant error shape. Each provider is a separate design surface.
Related guides: Trial login lifetimes: 4 provider figures to check first · 3 price settings for an auto-renewable subscription trial · Build a trial setup form: 5 key takeaways.
FAQ
What is a refresh credential in plain terms? It is the credential that lets your app keep getting new access tokens without asking the user to sign in again. Google states that a refresh credential allows your application to obtain new access credentials. Without a valid one, the user has to reauthorize.
Which two Google revocation cases should a trial product plan for? The two cases are a refresh credential that has not been used for six months, and a user who changed passwords while the refresh credential contains Gmail scopes. Both are documented revocation conditions on Google's OAuth 2.0 page for accessing Google APIs.
Does case one depend on when the credential was created? No. The condition is about use, not creation date. A credential is revoked if it has not been used for six months, regardless of how long ago it was issued. This is why tracking last use matters more than tracking issue date.
Can an active trial user hit case two? Yes. A password change can revoke a refresh credential with Gmail scopes at any point, even for a user who is in the product daily. The trigger is the password change itself, not idle time.
What does the user see when a refresh credential is revoked? Your app receives an invalid-grant style error from the provider and cannot mint a new access credential. Atlassian documents this shape as a 403 Forbidden with an invalid_grant error described as an unknown or invalid refresh credential. What your user sees depends entirely on how your app handles that error.
What should the reauthorization path look like? Route the user to a fresh consent screen with plain copy explaining why they are being asked to reconnect. Do not show raw OAuth errors. Confirm with your identity or platform team how your specific scope set interacts with Google's revocation conditions before you finalize the copy.
How is Slack different from Google here? Slack's rotation model revokes the refresh credential you used after a short grace period once the oauth.v2.access method is called. If your trial connects to both, design the renewal and error paths for each provider rather than sharing one handler.