Shopify storefront: storefront_login_url Hangs on First click(shop.app/accounts/bounce Timeout)

Hi Shopify community,

I’m facing a strange issue in storefront. We’re using shopify’s routes.storefront_login_url (e.g. /customer_authentication/login?return_to=%2Fcollections%2Fall&locale=en&ui_gint=full) on a button click to send guest user to the new Shopify account creation/login page.

Issue Details:

  • On first button click: Page shows endless login spinner. Network tab reveals internal redirect to https://shop.app/accounts/bounce which pends indefinitely, then ERR_TIMED_OUT. It retries the same URL multiple times internally.
  • On second button click(without page refresh): Works perfectly, redirects to login pages as expected.

Has anyone encountered this /accounts/bouncetimeout on first login redirect attempts ?

Appreciate any insights or solutions!

Thanks in advance!

Hey @harsh.patel , thanks for reaching out. Are you setting up a Headless storefront using the SF API?

routes.storefront_login_url is intended for Liquid themes, so this could be why you’re seeing the issue here. If you’re open to sharing a bit more about your use of the Storefront API, I can definitely take a look and see if we can figure out what’s causing the issue here for sure.