Having troubles with an app after updating scopes

Topic summary

A developer is experiencing a redirect loop error when new stores attempt to install their app after updating its permission scopes.

Key Details:

  • The app works fine when scopes are reverted to the original configuration
  • Stores that installed the app before the scope update continue working normally with the new scopes
  • The issue only affects fresh installations
  • Developer has followed proper deployment procedures: shopify app config link followed by shopify app deploy
  • Cookie settings have been verified and multiple browsers tested

Proposed Solution:
A community member referenced a related GitHub issue (#3504) and suggested adding the following configuration to shopify.app.toml:

[build]
include_config_on_deploy = true

Status: The discussion remains open with the developer seeking additional troubleshooting suggestions.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hello,

I have a problem. Recently I’ve updated my app to have access to more scopes. But the problem is that now when new store tries to install that app - it gets into redirection loop until it spits out an attached error.

If I revert scopes back - it works. Stores which had that app installed prior to scope update - works with updated scopes as well, so it’s only install that is broken.

Cookie setting are all in check, I’ve tried multiple browsers - same issue.

Ofc when deploying scopes, I did: “shopify app config link” then “shopify app deploy” and code that gets deployed also has updated .toml

Any suggestions what else can I try? Thanks!

2 Likes

Related GitHub issue: https://github.com/Shopify/cli/issues/3504

Make sure you have this in your shopify.app.toml:


[build]
include_config_on_deploy = true