Hydrogen Storefront Checkout Not Recognizing Logged-In Customer

Hydrogen Storefront Checkout Not Recognizing Logged-In Customer

Vinyas
Shopify Partner
1 0 0

Hey everyone,
I’m running into an issue with my Hydrogen storefront, and I was hoping someone might have some insight.

When I make the storefront public and log in as a customer, everything works fine until I try to check out. After adding products to the cart and proceeding to checkout, the site no longer recognizes the logged-in customer and prompts for login again.
I’ve already tried using the recommended approach from the Shopify docs by redirecting to this

https://<shop-domain>/checkouts/<checkout_id>?logged_in=true

Unfortunately, this didn’t resolve the issue. Has anyone else experienced this problem or found a workaround to ensure the customer stays logged in through the checkout process?
For reference, here is the screen recording of the issue: LINK 
Thanks in advance for your help!

Reply 1 (1)

TechNinja
Shopify Partner
6 0 0

Hi there!

 

Have you enabled the new customer accounts feature in your Shopify store? Additionally, are you using the Customer Account API with Hydrogen?

If you’re using an older version of the @Shopify/hydrogen package, I recommend upgrading to the latest stable release. Along with this, make sure your Hydrogen storefront repository is updated to use the Customer Account API, as the older customer storefront API could be causing issues.

 

Let me know if you need help with the upgrade or implementation!