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?