Automated check error - Immediately redirects to app UI after authentication

I am working on submitting an app and i am running into errors. Ive checked all of the guides here but i am still getting a couple of errors below.

Immediately redirects to app UI after authentication

Redirects are working 100% and no issues with oauth but it still wont mark it checked off.

**EDIT: Embedded checks now pass but it definitely doesnt check every 2 hrs

Embedded app checks**

Auto-checked every 2 hours. Log in and interact with your app on a development store to generate session data.

Using the latest App Bridge script loaded from Shopify’s CDN

It says it runs every 2 hours but i check graphql request and it says it hasnt ran in 12 hrs so not sure if my current update is working on embed app bridge check but its currently working and it runs a toast notification when you visit the app.

when it loads the application url it intercepts the shop and redirects to here, here it builds the authorize url with all the scopes, they accept and it grabs an access token from callback and callback redirects user back to the app

@Alan_G @KyleG-Shopify please assist

Hey @cybernetix, thanks for reaching out, happy to help.

In a lot of cases, the “immediately redirects to app UI after authentication” check can fail if you’re not using Shopify managed installation with token exchange, which simplifies the redirects (it can be tricky to implement if you’re not using our template code).

Out of curiosity, are you using Shopify CLI with a TOML config file to manage your scopes? If you configure scopes via shopify app deploy, Shopify should handle installation automatically.

On the App Bridge check, could you confirm you’re loading the script from Shopify’s CDN (https://cdn.shopify.com/shopifycloud/app-bridge.js) in your head tag before other scripts, not bundling it? Also, try installing on a completely fresh dev store and interacting with it. Sometimes, the automated checks need fresh session data to evaluate properly.

If you’re still running into the issue and are open to sharing whether you’re using CLI config, that’ll help pinpoint the exact fix. Just ping me here if I can help out further.

Alan thanks for getting back to me. Yes we are using CLI. App bridge check has passed. Its just the oauth redirect after authentication holding us back on “immediately redirects to app UI after authentication”

Thanks @cybernetix , going to DM you here in just a second to look into this further :slight_smile:

@Alan_G Hey, any chance we can coordinate a DM and try and help me troubleshoot this as well? Currently at a startup and this automated check error is killing us.

Thanks in advanced!

Hey @William_Wong - happy to set up a DM with you as well on this. Sending one now :slight_smile:

Where do we stand on this error?

@Alan_G - I’ve created a post here: Stuck on "Navigation error on install" - I have the exact same error - I’m using the official shopify react router template - GitHub - Shopify/shopify-app-template-react-router: A template for building Shopify Apps using React Router version 7 and above - can you please share any insight ?

I guess I’ll simplify my question: On a freshly cloned repo from GitHub - Shopify/shopify-app-template-react-router: A template for building Shopify Apps using React Router version 7 and above what are the steps required to pass this check, as an embedded app (default configuration) , on an app deployed in vercel? The default repo should pass Shopify’s requirements! FYI @Alan_G @KyleG-Shopify

Hey @Tiago_Reis , sorry for the wait here. I saw in your other thread that you’ve solved this, glad to hear you found a workaround! Please let me know if we can help out further with this if needed.

I am still having issues. I just tried to launch a fresh app like you recommended and I still get the error.

@Alan could you send me a DM - im stuck with this for a few days and cant figure it out….