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?
Solved! Go to the solution
Hi @Ogdila, and apologies for the inconvenience.
Would you mind sharing more details about the error you are encountering? Does the CLI throw any error that might shed some light to understand the underlying error better?
I did not receive an error.
I set up the CLI on my theme and started the development by typing "Shopify.theme.serve", then I can start editing my theme with all the hot reload and other CLI features locally.
The CLI serves the theme on http://127.0.0.1:9292/, and all is good. However, when I want to work on the customer account template files locally, I go to the "login" button and try to log in "as a customer." The page redirects to the reCAPTCHA page, and no matter how many times I submit the reCAPTCHA, it refreshes the same page.
So I disabled the reCAPTCHA in my store settings and tried again. With the reCAPTCHA disabled, the login page refreshes itself instead of logging me in as a customer, so I cannot edit the account template pages locally.
It might be because of the "HTTP" that is not secured or because it's running on localhost. That, I am not sure.
Thanks for the detailed steps. May I ask what version of the CLI are you using? You can get it by running `shopify version`. In case you are not running the latest, 2.6.3, which was released yesterday, I'd recommend updating and trying again.
@pepibumur I already tested 2.6.3 this morning, no change. I was thrilled when I saw three updates were pushed out the same night, and hoping that it may have this issue resolve, but it ain't.
So what would be the root of my issue? Any idea?
Unfortunately, I can't pinpoint what the issue might be yet. Could you run the CLI but prefixing the command with `DEBUG=1` to see if more log verbosity sheds more light?.
I can concur this is still an issue for Shopify CLI version 2.7.4
When on localhost:9292 and you try to access the account area of your shop you're prompted to login. When logging in you get a reCaptcha on localhost:9292/challenge. After submitting the reCaptcha you're redirected to the actual store address my-shop-slug.myshopify.com/challenge and have to do it again.
You can work around it though by disabling Google reCaptcha for the account page.
1. Go to the Admin page for your (development) store
2. Go to Online Store > Preferences
3. Scroll down to the 'Spam protection' section
4. Uncheck checkbox for "Enable Google reCAPTCHA on login, create account and password recovery pages"
This is a suitable workaround for me as it's a development store.