Immediately redirects to app UI after authentication error

Hello,
I am trying to get the app approved.
Every automatic check but this works:

Immediately redirects to app UI after authentication

Expected URL: App homepage after installation
Actual URL: https://admin.shopify.com/store/appstoretest9/app/grant?action=eyJjbGllbn………

I have tried creating a new app, and authentication works. When I run it, it looks like it redirects correctly, but the automatic check fails.

1 Like

Anyone knows what the issue is?
I have tried creating a new app, and tried so many different things. This is the only thing remaining and I am stuck on this.

Hey @dev_m, are you still seeing this issue?

Embedded apps should use Shopify managed installation with token exchange. With this setup, your app renders its UI immediately on load and acquires access tokens behind the scenes via session tokens. No OAuth redirect needed.

In your shopify.app.toml, make sure use_legacy_install_flow is omitted or set to false, then run shopify app deploy. The token acquisition guide covers the full setup.

Another developer hit this same issue here: Immediate redirection after Install - Latest check

Hello,
Thanks for the response. I have working token exchange, no oauth and legacy flow is false.
Urls are correct in shopify.app.toml. All other tests succeed, app works perfectly and installs fine. It just fails at the test because it redirects to app/grant. I have been stuck in this for a while, even though the code is correct. Is this a bug?

Hey @dev_m, can you try installing the app on a fresh development store that isn’t tied to your current development setup, then run the check again?

If it still fails on the fresh store, share your shopify.app.toml (redact secrets) and I’ll see if anything stands out.