I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isn’t a duplicate
In which of these areas are you experiencing a problem?
Theme
Expected behavior
I shouldn’t need to re-login and re-auth to Shopify numerous times a day
Actual behavior
Every hour or so or if I kill and restart the shopify theme cli command I am asked to Auth with Shopify again. This never used to happen it’s something new.
Reproduction steps
Use shopify theme dev for a whole day and experience having to re-auth over and over.
Verbose output
N/A
Operating system
Mac OS Sequioa 15
CLI version
3.86.1
Shell
zsh
Nodejs version
20.10.0
What language and version are you using in your application?
This happens to me at least once a day, and more than once today. It seems that, every time I run npm run dev, I have to re-auth from scratch (including logging into my account and two-factor).
Same issue. Also started about a month ago. It’s also 2FA every time so it is particularly time consuming. I would love to see this get resolved. If anyone found a workaround please share.
Hey everyone, this seems to be on and off, some days are worse than others. I’m also seeing it running my “npm run dev” script which runs “shopify theme dev --store xxxx.myshopify.com --theme-editor-sync”
Unfortunately experiencing the same issue on Mac (and my teammate on Windows): at least once a day or even more often cli requires auth on `npm run dev`.
Even I’ve been running into a recurring issue with the Shopify CLI where it keeps asking me to re-authenticate. This happens with both shopify theme dev and shopify app dev. I’m seeing this behavior only after the recent CLI update.
A few things I’ve noticed:
• If I keep the CLI running and step away for an hour or so, when I return and make a change, it forces a re-authentication.
• The next day, even if I authenticated the previous day, running shopify app dev or shopify theme dev always asks for login again.
• When there’s a bug code error, I often get this message:
I have two-factor authentication enabled, so repeating the login flow multiple times a day becomes a bit painful but recently started using Sign In with Passkey which saves a lot of time but still it’s a process in the end. This never used to happen before the recent update, so I’m not sure if this is expected behavior.