Session Token not resolved in localhost

Topic summary

A developer is experiencing issues with session token resolution while developing a Shopify embedded app locally using ngrok.

Setup Details:

  • Using ngrok for local development as recommended by Shopify guides
  • App Bridge configuration includes the ngrok host (xxx.eu.ngrok.io/)
  • Same host is registered in Partners Dashboard
  • Using authenticatedFetch function with App Bridge packages (versions 3.7.2-3.7.3)

Problem:

  • Session token fails to resolve during local development
  • No console output appears after the fetch function executes
  • The app works correctly when testing with a Demo store, but not in local environment

Current Status:

  • Developer has been stuck on this issue for a week
  • Shopify support directed them to submit the issue directly to the App Bridge GitHub repository
  • Issue remains unresolved and ongoing
Summarized with AI on November 21. AI used: claude-sonnet-4-5-20250929.

While developing Shopify Embedded app locally, session token is not resolved.
I’m using ngrok as per guides in Shopify.

My app initialize:

  const [appBridgeConfig] = useState(() => {
      const host = btoa('xxx.eu.ngrok.io/')
    window.__SHOPIFY_DEV_HOST = host;

    return {
      host,
      apiKey: process.env.CLIENT_ID,
      forceRedirect: false,
    };
  });

Same host is in Partners Dashboard. Using authenticatedFetch function:

export function useAuthenticatedFetch() {
    const app = useAppBridge();
    const fetchFunction = authenticatedFetch(app);

    return async (uri, options) => {
        const response = await fetchFunction(uri, options);
        console.log('Waiting');
        checkHeadersForReauthorization(response.headers, app);
        return response;
    };
}

And nothing is printed in console after fetchFunction . While using Demo store for app testing - it works like a charm. Packages:

  "@shopify/app-bridge": "^3.7.2",
  "@shopify/app-bridge-react": "^3.7.2",
  "@shopify/app-bridge-utils": "^3.5.1",

Hi @ssmellow :waving_hand: Issues with App Bridge can be submitted directly in the repo here.

Already did that, want to get help everywhere, because stuck for a week with it.