Skip to content

fix(auth): token exchange for managed install - #22

Merged
arsalan-arshad merged 2 commits into
mainfrom
fix/token-exchange
Nov 5, 2026
Merged

arsalan-arshad merged 2 commits into
mainfrom
fix/token-exchange

Conversation

@arsalan-arshad

Copy link
Copy Markdown
Owner

Summary

  • Implements Shopify Token Exchange (RFC 8693) to exchange App Bridge session tokens (id_token) for offline access tokens during Shopify managed installations.
  • Sends payload as JSON with expiring: 0 matching Shopify token exchange specifications.
  • Adds 5s AbortController timeout to Admin GraphQL profile synchronization.
  • Safeguards with in-flight per-shop concurrency lock, 60s negative cache, AES-256-GCM encrypted storage, and status-only logging.
  • Includes friendly root page on GET / linking to /privacy without credentials or domain inputs.
  • 578 unit tests passing across 132 suites.

Verified locally:

  • npm test: 578 passed, 0 failed
  • npm run test:all: 589 tests (578 passed, 11 DB tests skipped)

Unverified:

  • Live managed-install launch on a real store (ready for live verification).

@arsalan-arshad
arsalan-arshad merged commit af17e89 into main Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant