<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3" -->

---
title: More resilient refreshes for expiring offline access tokens
description: Shopify has changed how expiring offline access token refreshes behave: the previously used refresh token now stays valid until an app actually starts using...
canonical: https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: More resilient refreshes for expiring offline access tokens | daily.dev
og:description: Shopify has changed how expiring offline access token refreshes behave: the previously used refresh token now stays valid until an app actually starts using...
og:url: https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3
og:image: https://api.daily.dev/og/posts/SXNQSmpN3.png
og:image:alt: More resilient refreshes for expiring offline access tokens
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# More resilient refreshes for expiring offline access tokens

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 0 upvotes · 0 comments

## Summary

Shopify has changed how expiring offline access token refreshes behave: the previously used refresh token now stays valid until an app actually starts using its replacement, instead of expiring after a fixed 60-minute retry window. This gives apps a recovery path when a refresh response is lost or fails to persist, due to network issues, worker failures, or database write failures. The recovery period is capped at 30 days from the original token's first use and does not extend the token past its normal 90-day lifetime. No migration, API version bump, or opt-in is required. Apps should still serialize refresh operations per shop, persist token pairs atomically, and always use the newest refresh token going forward.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/more-resilient-refreshes-for-expiring-offline-access-tokens>

## Questions this post answers

### How long can I retry a Shopify offline access refresh token after it's been replaced?

An app can now retry a previously used refresh token until it starts using the replacement refresh token, rather than only within a fixed 60-minute window as before. This recovery period is capped at 30 days from the original refresh token's first use and does not extend the token past its normal 90-day lifetime. No migration or opt-in is required.

_Teams shipping Shopify app integrations track platform changelog updates like this via daily.dev._

### What happens if my Shopify app loses the response from a refresh token request?

Previously, a lost or unpersisted refresh response meant the old refresh token became unusable after 60 minutes, potentially requiring the merchant to reopen the app. Now Shopify retains the prior refresh token as a recovery path, usable until the app begins using the new replacement token, covering failures like network interruptions, worker crashes, or database write errors.

_Developers debugging token persistence failures often keep tabs on API behavior changes through daily.dev._

### Do I need to migrate my Shopify app for the new offline access token refresh behavior?

No migration, configuration change, API version bump, or opt-in is required if an app already uses expiring offline access tokens. Apps should still serialize refresh operations per shop, persist each access-token and refresh-token pair atomically, and always use the newest refresh token for subsequent refreshes.

_daily.dev helps developers stay on top of platform changes that affect existing integrations without breaking them._

## Similar posts on daily.dev

- [Offline access tokens now support expiry and refresh](https://daily.dev/posts/offline-access-tokens-now-support-expiry-and-refresh-x4a6bm6ix) · Shopify Developer changelog · 0 upvotes · 0 comments
- [More resilient token exchanges when migrating tokens without a user session](https://daily.dev/posts/more-resilient-token-exchanges-when-migrating-tokens-without-a-user-session-j1htwj77f) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Migrate to expiring offline access tokens before January 1, 2027](https://daily.dev/posts/migrate-to-expiring-offline-access-tokens-before-january-1-2027-cks4y1llk) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Security update: Offline token dates, new security features](https://daily.dev/posts/security-update-offline-token-dates-new-security-features-ufyajkwaw) · Shopify Developer changelog · 0 upvotes · 0 comments

---

Tags: [#oauth](https://daily.dev/tags/oauth), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"More resilient refreshes for expiring offline access tokens","url":"https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3"},"datePublished":"2026-08-28T14:04:39.136Z","dateModified":"2026-08-28T14:04:59.724Z","description":"Shopify has changed how expiring offline access token refreshes behave: the previously used refresh token now stays valid until an app actually starts using...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"oauth,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"More resilient refreshes for expiring offline access tokens"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/more-resilient-refreshes-for-expiring-offline-access-tokens-sxnqsmpn3#faq","mainEntity":[{"@type":"Question","name":"How long can I retry a Shopify offline access refresh token after it's been replaced?","acceptedAnswer":{"@type":"Answer","text":"An app can now retry a previously used refresh token until it starts using the replacement refresh token, rather than only within a fixed 60-minute window as before. This recovery period is capped at 30 days from the original refresh token's first use and does not extend the token past its normal 90-day lifetime. No migration or opt-in is required. Teams shipping Shopify app integrations track platform changelog updates like this via daily.dev."}},{"@type":"Question","name":"What happens if my Shopify app loses the response from a refresh token request?","acceptedAnswer":{"@type":"Answer","text":"Previously, a lost or unpersisted refresh response meant the old refresh token became unusable after 60 minutes, potentially requiring the merchant to reopen the app. Now Shopify retains the prior refresh token as a recovery path, usable until the app begins using the new replacement token, covering failures like network interruptions, worker crashes, or database write errors. Developers debugging token persistence failures often keep tabs on API behavior changes through daily.dev."}},{"@type":"Question","name":"Do I need to migrate my Shopify app for the new offline access token refresh behavior?","acceptedAnswer":{"@type":"Answer","text":"No migration, configuration change, API version bump, or opt-in is required if an app already uses expiring offline access tokens. Apps should still serialize refresh operations per shop, persist each access-token and refresh-token pair atomically, and always use the newest refresh token for subsequent refreshes. daily.dev helps developers stay on top of platform changes that affect existing integrations without breaking them."}}]}
```

