{{ customer }} is null on storefront after login via shopify.com/account

Hey everyone,

We’re seeing a strange issue with customer sessions on stores using new customer accounts.

Basically, when a user logs in via shopify.com/account, everything looks fine there — but when they return to the storefront (*.myshopify.com) after some time (like 24h+), they show up as logged out. {{ customer }} is null, so any Liquid-based logic or loyalty widgets treat them as guests. But at the same time, the checkout still recognizes them as logged in and pre-fills their info.

  • Cookies are valid and not cleared (expiry set to 2026)
  • Reproduced on multiple stores and devices (desktop & mobile)
  • Re-logging fixes it, but only temporarily
  • Happens even without any apps installed

Shopify support suggested session tokens, but those don’t really apply here since this is about native storefront + Liquid, not an embedded app or headless setup.

Anyone else run into this?
Would love to know if this is expected or if there’s a proper fix/workaround.

Thanks!

Hi - thanks for flagging this. Digging into this behaviour on my side- will update asap!

Hi again @user144

It looks like this is an issue on our side, we’re currently investigating a fix.

Hi Liam

Just to confirm, this is happening with a client of ours too; customers can be logged in using new accounts, but as soon as they click through to the Store from the account page the customer object is empty. If the user completely clears cache, logs out, logs in again, turns 3 times on the spot and click their shiny red shoes together they sometimes can be seen as a customer. Struggling to get a consistent set of reproduction steps, but a fix would be grand.

Can you update here when you have a fix, please?

Hi @Gary_Massie-Thompson

Thanks for providing the extra info, we’re still working on a fix, will update here once it’s been shipped.

Update: We’ve just released a fix for this. The fix won’t affect sessions that were already created before this, but sessions that are saved now should last 30 days.

1 Like

We still have this isssue. Is there a way to solve it definitely?
Thank you!

Same here, we’ve been having this issue for weeks now and my client is boiling.. For some, the {{ customer }} object is null in the theme after login in, even after login out then back in.

Hello, the strange behavior noticed since Shopify rollout New Customer Account.
We build loyalty program and go into the issue randomly. There is no such pattern on it.
Even right after logged in successfully, click to Go to store => User got logged out.
Reach to chat with Shopify support sometime but seem they don’t catch it.

Hi folks - is this issue still appearing for new customer sessions?

Yes Liam, it still appearing randomly on storefront.
Ps: Please check your DM on X

This has been an ongoing issue for over a month and have a ticket open with Shopify Plus Support for over 3 weeks. The only workaround so far is using a private browser. This is greatly affecting our sales as customers can’t shop in a logged in state.

Hi folks - I’ve confirmed with our internal team that the customer.id intermittently empty after customer login issue that @kahn flagged is a separate issue that the one originally flagged here. Our team are investigating resolving this.

Thank you @Liam-Shopify for Confirming it.

Can you please check my DM on X, I have sent message there because it is not comfortable to publish a post on community to avoid cheating orders.

Hello @Liam-Shopify, yes, that issue is still there. Thank you for investigating on it!