Skip to content

Use validated storefront password for theme apps#7662

Merged
graygilmore merged 1 commit into
mainfrom
gg-fix-app-dev-password-loop
May 29, 2026
Merged

Use validated storefront password for theme apps#7662
graygilmore merged 1 commit into
mainfrom
gg-fix-app-dev-password-loop

Conversation

@graygilmore

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

ensureValidPassword now treats an empty string as a provided password (#7010), so passing '' from the app dev flow skips the normal prompt/local storage fallback.

Pass undefined instead so password-protected stores use the same validation path as theme dev, and keep the returned password on the theme app extension process options.

How to test your changes?

  1. Run shopify app dev against a shop that has a storefront password
  2. Enter the password
  3. Ensure that the server runs normally
  4. Stop the server and start it again
  5. Ensure that you are not prompted for the password again (ie it should not say "Incorrect store password")

ensureValidPassword now treats an empty string as a provided password, so passing '' from the app dev flow skips the normal prompt/local storage fallback.

Pass undefined instead so password-protected stores use the same validation path as theme dev, and keep the returned password on the theme app extension process options.
@graygilmore graygilmore requested review from a team as code owners May 28, 2026 21:31
@github-actions github-actions Bot added the Area: @shopify/app @shopify/app package issues label May 28, 2026
@EvilGenius13

Copy link
Copy Markdown
Contributor

/snapit

@github-actions

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @EvilGenius13! Your snapshot has been published to npm.

Test the snapshot by installing your package globally:

pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20260528213307

Caution

After installing, validate the version by running shopify version in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

@EvilGenius13 EvilGenius13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎩 on current CLI vs the snapshot, works great!

@graygilmore graygilmore enabled auto-merge May 29, 2026 17:15
@graygilmore graygilmore added this pull request to the merge queue May 29, 2026
Merged via the queue into main with commit e7ebf96 May 29, 2026
29 checks passed
@graygilmore graygilmore deleted the gg-fix-app-dev-password-loop branch May 29, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/app @shopify/app package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants