App Bridge Scopes API Error After removing use_legacy_install_flow flag

Hey!

Shopify CLI is 3.84.0 right now and there is no config pushcommand available.

Here is x-request-id 0dc15a7c-723b-4cdc-8332-b1335c78a153-1755893895 for AppAccessRequestGrantMutation

Thanks @irek.khasianov, I was able to pull some logs using the request ID, I really appreciate you sending this my way.

I can’t guarantee a turnaround time, but I’ll investigate further and loop back with you once I have more info to share.

1 Like

Hey @irek.khasianov - thanks again for your patience on this, just following up with an update. I was able to work with some folks internally, and we noticed that your app (storista-dev-72 per the logs there ) currently has use_legacy_install_flow set to truein your declared access scopes. Could you try setting this to false and letting us know if this resolves the issue?

There’s a bit more info on this here: Enable Shopify-managed installations for your app

if you’re still seeing the issue pop up, just let me know and I’m happy to keep looking into this with you.

Hi @Alan_G ! Currently, we’re stuck with legacy flow. Without managed installations, it’s not possible to use AppBridge’s API without it?

@irek.khasianov

we’re stuck with legacy flow

If you are stuck on the legacy install flow for technical reasons, please open a new post sharing your specific context and blockers; we would like to hear more about this!

Without managed installations, it’s not possible to use AppBridge’s API without it?

The App Bridge Scopes API supports the newer declarative optional_scopes configuration. (The documentation on this page does not clearly spell this out; I’ll see if I can add some clarification on that page.)

Linked out from that page is our Manage access scopes documentation, which states this more clearly:

You can only request additional access scopes dynamically if they are configured as optional_scopes in your app’s TOML file

This means that, from our Scopes APIs, scopes.request() and scopes.revoke() are only available for optional scopes. scopes.query() will still return a list of the granted scopes on a store, though.

Hi @Alan_G and @Kyle-Shopify

Sorry for the late reply. I just migrated to Managed Install flow and scopes.request() started to work correctly :slight_smile:

It would be great to add a note that scopes.request() works only with managed installs