New customer account: login issue on return to storefront

Hi, I’m having an issue with the customer account login that started yesterday. Here’s what’s happening:

I visit the store and log in using the PIN method (new customer account experience). After logging in, I’m correctly redirected to the customer account - specifically to the Orders page. Then, when I click on the store logo to go back to the storefront, I get the error shown in the attached screenshot.

It looks like some kind of customer authentication issue - even though I’m already logged in?

To return to the storefront, I have to go back to the Orders page and click the logo again. The second time it works, but there’s something strange: in my Liquid templates, I use {% if customer %} to show customer-only elements, and they don’t appear - even though I’m clearly logged in.

This is a pretty big issue for us - I’d really appreciate your help or insights if anyone else is seeing this too.

Here is a fragment of my URL:
/customer_authentication/callback?source=core&code=

One extra detail: I’m currently running an A/B test with Intelligems, comparing two versions of the navigation menu. Could this test be interfering with customer authentication?

Thanks in advance!

EDIT:
I tried to use <a href="{{ routes.storefront_login_url }}" class="button grey">Sign In</a> on the preview theme but it doesn’t work either. This time I see this:

Hey @lynthius :waving_hand: - the new customer account experience doesn’t currently support Liquid customizations (there’s a bit more info here), so I suspect this could be what’s causing the issues that are popping up here.

The new customer accounts operate separately from the rest of the storefront and customization for them is intended to be routed through their own surface:

Just to clarify, are you using that authentication callback URL within Liquid? The new customer accounts feature, uses a different set up than the old model via the GraphQL API, so I wonder if that’s what is causing the mismatch there: Customer Account API reference

Hope to hear from you soon, happy to help with this :slight_smile:

Hi @Alan_G, thanks for your help. I’ll let you know this week, I didn’t have any time to look into it more closely last week.

1 Like