Optional scopes defined in app configuration not returned via App Bridge

Hi Shopify Team,

I am developing a Shopify embedded app and recently added some optional scopes in the app configuration file (shopify.app.toml). After releasing the new version of the app, the optional scopes are correctly visible in the Shopify Developer Dashboard.

However, when I try to access the optional scopes through App Bridge, it returns an empty array ([]) instead of the expected scopes.

Additional details:

  • The optional scopes are properly defined in the .toml file.

  • The app version containing these scopes has been successfully released.

  • The scopes are visible in the Developer Dashboard.

  • When retrieving optional scopes via App Bridge, it returns [].

What’s confusing is that yesterday the optional scopes were working correctly, and I was able to retrieve them successfully. Today they are no longer appearing, even though no code or configuration changes were made after the successful test yesterday.

Has anyone experienced a similar issue, or is there any recent change or delay in scope propagation that might cause this behavior?

Any guidance would be appreciated.

Thanks!

Hey @jaymit_b,

Just ran into a similar issue where I’d deploy optional scopes for my dev app but they didn’t appear in app bridge. I could see the optional scopes in the settings on the dev dashboard but the app bridge (shopify.scopes.query()) was returning an empty array.

What fixed it for me was running shopify app dev locally after I did the deploy and then the optional scopes appeared for me via the App Bridge API

Hope this helps,
Daniel