Skip to content

Cache Admin API scopes returned by preview store creation#7948

Draft
amcaplan wants to merge 1 commit into
mainfrom
preview-store-cache-scopes
Draft

Cache Admin API scopes returned by preview store creation#7948
amcaplan wants to merge 1 commit into
mainfrom
preview-store-cache-scopes

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

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jun 28, 2026
The preview store creation endpoint now returns admin_api_scopes (e.g.
read_themes, write_themes) alongside the admin API token. Parse this list
and persist it in the local store-auth session cache instead of an empty
array, mirroring how store auth stores granted scopes.

Backends that predate the field omit it, so we default to an empty list.

Assisted-By: devx/f38d0794-3b14-4a2a-a849-b95ae665f83d
@amcaplan amcaplan force-pushed the preview-store-cache-scopes branch from 7554acb to 7e206fe Compare June 28, 2026 17:09
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