Shopify is retiring non-expiring offline access tokens. On January 1, 2027, public apps that still use them are delisted from the Shopify App Store and blocked from new installs; from January 15, merchants using them see a warning in the Shopify admin; and from April 1, 2027, Admin API requests with those tokens return HTTP 403. Since December 1, 2026, new custom apps and new merchant-created apps must use expiring tokens from the start. This guide is for a solo developer or small team with a public app: what is in scope, the order that avoids locking stores out, the refresh rules that break apps in practice, a tested script that lists which saved stores still need migrating, and an invented worked example.
The short answer
If your public app still stores offline tokens with no expiry, first make your app able to refresh tokens, then request expiring tokens for every new install, then exchange the tokens you already have, one store at a time, saving the new pair before you move on. Do it before January 1, 2027, or your listing disappears and new merchants cannot install; existing installs keep working only until April 1, 2027.
If you built on Shopify's React Router or Remix app template, the change is mostly a configuration flag and a deploy, but the flag does not convert tokens already saved in your database. Those still need the exchange step, or each store moves over only when it next gets a new token.
The dates Shopify has set
Custom apps and apps created by merchants, in the Dev Dashboard or the admin, must use expiring offline access tokens from the start if they are created on or after this date. Existing custom and merchant-created apps are not in the migration timeline.
Shopify: Migrate to expiring offline access tokensPublic apps that still use non-expiring offline access tokens are delisted from the Shopify App Store and blocked from new installs. Existing installs keep working.
Shopify changelog (Oct 27, 2026)Merchants using a non-compliant app see a warning in the Shopify admin.
Shopify changelog (Oct 27, 2026)GraphQL and REST Admin API requests that present a non-expiring offline token are rejected with HTTP 403, and merchants lose access to the app until they re-authenticate.
Shopify: Migrate to expiring offline access tokensDoes it apply to your app?
| Dimension | In scope? | What to do |
|---|---|---|
| Public app with offline tokens saved before it requested expiring ones | Yes. This is the main case. | Follow the migration order below before January 1, 2027. |
| Public app created on or after April 1, 2026 | Already required to use expiring tokens. | Confirm your code refreshes them; run the audit script to check. |
| Custom or merchant-created app made before December 1, 2026 | No, not in this timeline. | Nothing required now; expiring tokens are still the safer default. |
| Custom or merchant-created app made on or after December 1, 2026 | Must use expiring tokens from the start. | Build refresh handling before the first install. |
| Online (per-user) access tokens | Outside this mandate. | No change. |
| Payments Apps API requests | Not subject to the requirement. | Shopify staff have not said whether this exclusion is permanent. |
A migration order that does not lock stores out
Shopify offers three routes: request expiring tokens on new token requests (each store moves the next time it gets a new token), exchange each saved token in bulk without a user session, or switch to application-only tokens obtained with client credentials. Shopify says to make the first change before running the second. The exchange is irreversible: it permanently invalidates the old token for Admin API requests.
- Add storage for the refresh token and both expiry times next to each store's access token, and code that refreshes a token before it expires. An expiring access token lasts 1 hour (expires_in 3600); its refresh token lasts 90 days (refresh_token_expires_in 7776000).
- Make every refresh for a store run one at a time, for example with a per-store lock. Two workers refreshing the same store can leave one holding a token the other already replaced.
- Request expiring tokens on every new token request: add expiring=1, or, with @shopify/shopify-app-react-router or @shopify/shopify-app-remix, set future: { expiringOfflineAccessTokens: true } in shopifyApp() and run shopify app deploy.
- Export your saved sessions and run the audit script below to list the stores still on non-expiring tokens.
- Exchange one development store's token first with the request below. Save the new access token, refresh token and expiry times before you discard the old token, then make one Admin API call with the new token.
- Exchange the remaining stores in small batches, logging each store as done only after the new pair is saved. If a response is lost, retry the same request with the original token within seven days; Shopify returns the same pair.
- Check your app's Logs in the Dev Dashboard: filter Type to GraphQL request and Token type to Offline, non-expiring, then repeat with REST request. Any store still listed has not moved.
Find the stores that still need migrating
Your database is the list Shopify cannot give you: which stores you hold a token for, and what kind. Export the session table to CSV, for example with sqlite3 -header -csv prisma/dev.sqlite "select * from Session;" > sessions.csv for a SQLite Prisma store, or your database's own CSV export. Then save the script below as shopify_token_audit.py, read it, and run python3 shopify_token_audit.py sessions.csv.
It needs only Python 3, reads the file on your computer and calls nothing. It skips online sessions and labels each offline row: MIGRATE (no expiry and no refresh token), REAUTH (refresh token expired, so the store needs a new token when the merchant opens the app), REFRESH SOON (refresh token expires within 14 days, or the number you pass), NO TOKEN, CHECK (incomplete or unreadable data, or an old row for a store that also has an expiring token) and OK. Tokens are printed only as their first six and last four characters.
Refresh rules that break apps in practice
- Each refresh returns a new refresh token with a new 90-day expiry. Save it every time; a store whose token is never refreshed runs out after 90 days, even if nothing else changed.
- The previous refresh token keeps working until you use the new one, until a new token exchange or authorization for the store, 30 days after its first use, or its own 90-day expiry, whichever comes first. That makes a lost response recoverable, not a reason to refresh twice.
- A new token exchange or authorization code grant for a store retires every other refresh token for that store at once. Do not refresh and re-acquire for the same store at the same time.
- Retry network errors, timeouts, 5xx and 429 responses with the same refresh token. A 401 with invalid_request ("This request requires an active refresh_token") is final: mark the store and get a new token through token exchange when the merchant next opens the app.
- After April 1, 2027, a 403 whose message says "Non-expiring access tokens are no longer accepted for the Admin API" means a store was missed. A 403 can also mean a missing access scope, so match on the message, not the status alone.
- A frozen store can still refresh; its Admin API requests may return 402 Payment Required.
Test the cut-off before Shopify does
The Dev Dashboard has an optional Admin API token expiry setting that makes Shopify return 403 Forbidden for requests with non-expiring tokens to your app before the deadline. It takes up to 30 minutes to apply, applies to the whole app, and does not migrate, revoke or delete any token. Turn it on only after the audit script and the Dev Dashboard logs both show nothing left to migrate; otherwise you start the April outage early for the stores you missed. Shopify hides the setting for apps already under mandatory enforcement.
Worked example: a small restock-alert app
This example is invented to show the workflow. A solo developer runs a public app called Restock Ping, built on the Remix template in 2025, with ten offline sessions saved. On December 1, 2026 they export the session table and run the audit script.
- The script checks 10 offline rows and skips one online session: 5 MIGRATE, 1 REAUTH, 1 REFRESH SOON, 1 CHECK and 2 OK.
- The two OK stores installed after the developer had already set the expiringOfflineAccessTokens flag. The REFRESH SOON store has not used the app for months; its refresh token expires on December 8, so a scheduled job now refreshes every store's token weekly.
- The CHECK row is an old non-expiring row for a store that also has an expiring one. The developer deletes it.
- The REAUTH store's refresh token expired on November 20. Its merchant gets a new token the next time they open the app; the developer emails them a one-line request to do so.
- They exchange the five MIGRATE tokens one store at a time, starting with their development store, saving each new pair before marking the store done. A rerun of the script shows 0 MIGRATE, and the Dev Dashboard log filter shows no non-expiring requests for two days.
Where Soloop fits
Soloop does not connect to Shopify, hold your app's credentials or change your code. Use Shopify's documentation, your app's code and the script above for the migration.
Soloop is an AI cofounder that runs individual go-to-market tasks for a founder, with approval before actions that matter. Once the app is safe, it can help with the other side of the listing: researching the merchants who need what the app does and drafting the messages that bring your first installs.
Sources, limitations and refresh
Shopify's migration guide, access token reference, token exchange tutorial, changelog posts and the community Token Expiry FAQ were read on December 1, 2026. We did not run a migration against a live Shopify store or app for this guide: the exchange request is copied from Shopify's documentation, and the audit script was tested on sample files only. The order of work, thresholds and worked example are editorial guidance; the example is invented.
This guide will be reviewed by January 2, 2027 and again by April 2, 2027, or sooner when Shopify changes the schedule or the migration steps.
Schedule, scope, the three options, exchange parameters, invalid_subject_token, seven-day recovery, Dev Dashboard log filter, template flag, optional token expiry setting and the 403 message.
Migrate to expiring offline access tokensAccess token 1 hour, refresh token 90 days, rotation and retirement rules, a revoked token returns 401, uninstalling ends access.
Shopify: Access tokensRefresh parameters, refresh one store at a time, 401 invalid_request is terminal.
Shopify: Implement token exchangeDelisting and blocked installs January 1, warnings January 15, HTTP 403 April 1, 2027 (posted October 27, 2026).
Shopify changelogRetrying with the original token within seven days returns the same token pair (posted September 29, 2026).
Shopify changelogThe previous refresh token can be retried until the replacement is used, for at most 30 days (posted August 28, 2026).
Shopify changelogPayments Apps API traffic excluded; changing acquisition configuration does not convert stored tokens; warnings consider the preceding 14 days of use.
Shopify community: Token Expiry FAQThe Soloop manual describes research with sources and drafts with approval first; it does not connect to Shopify.
Soloop product manual