Unable to log into customer account when using shopify theme serve

Solved
Allan-EP
Shopify Partner
11 0 18

Using the CLI command shopify theme serve I'm unable to log into a customer account to be able to preview/modify those templates. My guess is there's some kind of authentication/cookie issue since it's at http://127.0.0.1:9292/ but this is a significant road block for using the CLI for development. Has anyone run into this and found a fix?

Accepted Solution (1)

Accepted Solutions
drakedev
Shopify Partner
615 132 171

This is an accepted solution.

Dev team just released Shopify CLI 2.3.0 that should solve the reported issue (#1480)

Follow this guide to upgrade your version.

If my answer was helpful click Like to say thanks
If the problem is solved remember to click Accept Solution
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.

View solution in original post

Replies 18 (18)
drakedev
Shopify Partner
615 132 171

Hi @Allan-EP 

do you use a staff account or partner account access to the client store?

Did you try to logout

shopify logout

and login again?

shopify login

Any errors? Can you try  to login to the specific store?

shopify login [--store=STORE]
If my answer was helpful click Like to say thanks
If the problem is solved remember to click Accept Solution
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.
Rebeccajk440
New Member
1 0 0
Allan-EP
Shopify Partner
11 0 18

@drakedev The CLI store login is working fine for syncing changes using my partner account. What I'm referring to is logging into a user's account area on the front at /account/login while using

 

shopify theme serve

To get around this, I ended up pushing to the theme after each change, but that's pretty annoying compared to live reload or themekit's watcher. 

 

brendamarienyc
Tourist
3 0 3

I just encountered this issue as well. I cannot log in to the store as a customer with an account from http://127.0.0.1:9292 which is generated from Shopify CLI with the command "shopify theme serve".  I tried a few different stores and different browsers with the same problem. This means I can't work on any development for features related to the customer object which is a big blocker! Can anyone help?

brendamarienyc
Tourist
3 0 3

I found a good enough work around for this. You can preview the development theme while you are working on it using the link provided in the terminal after you run "shopify theme serve" under the heading "Share this theme preview". It doesn't hot reload the code changes on save like the local url, but it will show the updates on page refresh.

pepibumur
Shopify Staff
4 0 1

Hi!

I'm Pedro from Shopify,

First of all, apologies for the inconvenience caused by this. We were able to reproduce the issue and we are looking into it.
I'll get back to you with a solution so that you can iterate on your themes smoothly.

drakedev
Shopify Partner
615 132 171

This is an accepted solution.

Dev team just released Shopify CLI 2.3.0 that should solve the reported issue (#1480)

Follow this guide to upgrade your version.

If my answer was helpful click Like to say thanks
If the problem is solved remember to click Accept Solution
Shopify/Shopify Plus custom development: You can hire me for simple and/or complex tasks.

View solution in original post

Allan-EP
Shopify Partner
11 0 18

Just updated and tested - works!

lyonsun
Tourist
4 0 1

Hi,

It seems the problem still exists if the "Enable Google reCAPTCHA on login, create account and password recovery pages" setting is on. When I disable that, it works well then.