My Shopify embedded app (shop-siren development environment) is stuck in an infinite OAuth redirect loop that I cannot fix.
The Problem: The @gadgetinc/react-shopify-app-bridge Provider keeps redirecting to /api/connections/auth/shopify even though:
The shop IS installed (appSessionId exists in logs) The shop has correct scopes (read_content,unauthenticated_read_content) Custom OAuth route confirms shop exists with correct scopes shopify.app.development.toml has matching scopes Log Pattern (repeats infinitely):
/api/shopify/install-or-render → 302 redirect to / / → 200 (page loads) /api/connections/auth/shopify → 302 to Shopify OAuth Loop repeats Root Cause: The GadgetProvider's shopifyInstallState is incorrectly signaling that re-authentication is needed, triggering the Provider to redirect to OAuth.
What Started It: Adding a recipients hasMany relationship to shopifyShop model broke OAuth (relationship has since been removed)
Need Help: Please reset the OAuth state for shop aiadmin-demo.myshopify.com or tell me how to fix the shopifyInstallState value.