Skip to content

Exit store auth early for preview stores#7950

Draft
amcaplan wants to merge 1 commit into
store-info-auth-scopesfrom
store-auth-preview-early-exit
Draft

Exit store auth early for preview stores#7950
amcaplan wants to merge 1 commit into
store-info-auth-scopesfrom
store-auth-preview-early-exit

Conversation

@amcaplan

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

Post-release steps

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Jun 28, 2026
@amcaplan amcaplan force-pushed the store-auth-preview-early-exit branch from c833ade to 3cc6585 Compare June 28, 2026 17:09
@amcaplan amcaplan force-pushed the store-info-auth-scopes branch from 307d191 to c608d3d Compare June 28, 2026 17:09
Preview stores aren't a logged-in experience: there's no OAuth flow and no
way to grant additional Admin API scopes after creation. Running the
standard store auth flow against one confuses callers (including agents
that habitually run store auth before store execute).

Detect a cached preview-store session up front and abort with a clear
message that store auth is unavailable, listing the scopes already
preapproved at creation time and pointing at store execute / store info.

Assisted-By: devx/f38d0794-3b14-4a2a-a849-b95ae665f83d
@amcaplan amcaplan force-pushed the store-info-auth-scopes branch from c608d3d to 518dabd Compare June 28, 2026 17:14
@amcaplan amcaplan force-pushed the store-auth-preview-early-exit branch from 3cc6585 to 4671bfd Compare June 28, 2026 17:14
@github-actions github-actions Bot added no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. and removed Area: @shopify/cli @shopify/cli package issues labels Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant