# Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It

> 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.

Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It is a paid AI agent skill on Agensi by Hamza Alayed, in E-commerce. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Hamza Alayed](https://www.agensi.io/creators/hamza-alayed)
- Category: [E-commerce](https://www.agensi.io/skills/ecommerce)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/shopify-expiring-offline-tokens-fix-jan-1-2027-find-every-non-expiring-token-migrate-prove-it
- Tags: ecommerce, apis-backend, security, code-quality-review, devops-cloud

## 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.

1. Repository path, language and framework (Node/Remix/React Router template, Laravel/PHP, Rails, Python, other).
2. How the app gets offline tokens today: app template, token exchange, or authorization code grant.
3. Where tokens are stored (table/collection name, encryption) and every process that reads them (web, queue workers, cron, webhooks).
4. Distribution: public, custom, or merchant-created; creation date if custom.
5. Approximate install count and whether merchants open the app regularly.

## Requires

- 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.

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Shopify Expiring Offline Tokens Fix (Jan 1, 2027): Find Every Non-Expiring Token, Migrate, Prove It skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which apps does this affect?

Shopify public apps that call the GraphQL or REST Admin API with non-expiring offline tokens: delisted and blocked from new installs on January 1, 2027, Admin API 403s from April 1, 2027. Custom and merchant-created apps created on or after December 1, 2026 must use expiring tokens from the start; older ones are outside this timeline.

### How current are the facts?

Every date, lifetime, parameter and error was checked against shopify.dev on 2026-11-23, with links in reference/shopify-facts.md so you can re-check before acting.

### I use the Shopify React Router or Remix template. Is the flag enough?

The expiringOfflineAccessTokens flag covers new token acquisitions. Stores that never reopen your app keep their old tokens, so the skill also walks you through the bulk exchange and the Dev Dashboard check.

### How is this different from reading Shopify's migration guide?

The guide explains the options. This skill finds the exact files and lines in your code, adds storage, locking and error handling the guide leaves to you, and ends with a verified report and verdict.

### Does it change my production data?

No. The scanner only reads files. The bulk exchange command is provided with a dry-run mode and is run by you when you are ready.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
