- Home
- Skills
- E-commerce
- Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It
Works with the AI Agents you already use
Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It
by Hamza Alayed
Scans a Shopify app for non-expiring offline tokens, applies expiring=1, refresh and bulk migration, and returns a pass/fail migration report before the Jan 1, 2027 delisting.
$1
Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It
Example session with this skill installed
Our Shopify public app is Laravel 12 plus a small React Router admin. Background jobs sync orders every 15 minutes using the token we saved at install. Shopify says non-expiring tokens get delisted on Jan 1, 2027. Audit the repo and fix it.
- Read your context and instructions
- Compiled the shopify expiring offline
Scanner, before (4 files):
[Blocker] ACQ-NO-EXPIRING app/Http/Controllers/AuthController.php:9 token request has no expiring=1 nearby
[Blocker] STORE-NO-REFRESH database/migrations/..._create_shops_table.php:6 storage lacks refresh token and expiry
[Blocker] TEMPLATE-FLAG-MISSING web/shopify.server.ts:2 shopifyApp() without future.expiringOfflineAccessTokens: true
[Review ] NEVER-EXPIRES-ASSUMPTION app/Http/Controllers/AuthController.php:8 // Offline tokens never expire...
[Review ] SEND-STATIC-TOKEN app/Jobs/SyncOrders.php:8 header set from a value never refreshed in this file
Path chosen: Option 1 (expiring=1 on OAuth code exchange + template flag), then Option 2 bulk exchange, because sync jobs run for stores that rarely open the app.
Changes: expiring=1 added to OAuth callback; migration adds refresh_token, access_token_expires_at, refresh_token_expires_at, token_kind, needs_reauth; ShopifyTokenService refreshes 60 s before expiry under Cache::lock per shop; SyncOrders now calls accessToken($shop); shopify:migrate-tokens command (dry-run, batches of 50).
Scanner, after (7 files): 0 findings, 0 blockers (exit 0).
Verification: V1 PASS (scanner) · V2 PASS (migration diff, encrypted casts) · V3/V4/V5 tests to run in CI · V7/V8 pending production bulk run.
Verdict: NOT READY until V3–V5 pass in CI and the bulk exchange runs; no open Blockers.
Connects securely to your tools. The creator never sees your data.
About this skill
Shopify is retiring non-expiring offline access tokens for public apps. From January 1, 2027 a public app that still uses them is delisted from the Shopify App Store and blocked from new installs; from April 1, 2027 its GraphQL and REST Admin API requests with those tokens return HTTP 403. This skill makes an agent find every place an app gets, stores, sends or assumes a permanent offline token, choose the right migration path (gradual, bulk exchange, or application-only tokens), apply the code and schema changes, and hand back a migration report with pass/fail evidence. Facts were checked against shopify.dev on 2026-11-23; see reference/shopify-facts.md.
- A Shopify public app (App Store or unlisted public distribution) calls the GraphQL Admin API or REST Admin API with stored offline tokens.
- The Dev Dashboard Logs show requests with token type "Offline, non-expiring".
- The team saw the changelog post of October 27, 2026 or the admin warning and needs a plan before January 1, 2027.
- Background jobs, webhooks, Flow actions or app-proxy backends use a token stored at install time.
- A custom app or merchant-created app is being created on or after December 1, 2026 (it must use expiring tokens from the start).
Do not use it for: Storefront API tokens, Customer Account API tokens, Payments Apps API requests (the enforcement timeline does not apply to them), or online (per-user) tokens, which already expire.
- Repository path, language and framework (Node/Remix/React Router template, Laravel/PHP, Rails, Python, other).
- How the app gets offline tokens today: app template, token exchange, or authorization code grant.
- Where tokens are stored (table/collection name, encryption) and every process that reads them (web, queue workers, cron, webhooks).
- Distribution: public, custom, or merchant-created; creation date if custom.
- Approximate install count and whether merchants open the app regularly.
The scanner is a regex heuristic: it can miss token calls built through unusual wrappers and can flag false positives; the skill tells the agent to confirm each hit by reading the code. It does not run the bulk exchange against production for you, does not cover Payments Apps API, Storefront or Customer Account API tokens, and is not legal or Shopify Partner Program advice. Dates and lifetimes were checked on shopify.dev on 2026-11-23; Shopify can change them.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 11 days ago
- Software
Python 3.8+Shopify app source code
Checking the Dev Dashboard Logs (verification step V7) needs access to the app in the Shopify Dev Dashboard.
Permissions
File Scopes
The bundled scanner is read-only and makes no network calls. Code samples call {shop}.myshopify.com only when you run them in your own app.
What's inside
Frequently Asked Questions
New in E-commerce
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.