I can't log in to my store using Shopify CLI

When I try to log in, the new tab opens in the browser and asks me to confirm if the verification code matches. After confirming, I see the message " Successfully logged in to Shopify CLI on your device."

But in the terminal, I keep seeing this error no matter what I try. What should I do?

Have you tried to login via a browser - ie: navigatie to Log In ‹ Protected Blog — WordPress and then log in using the email address listed as the store owner? Once you do that, you can run the command in terminal again and it should work as expected.

You could also run shopify auth logout to logout of the account and try again. Normally that just fixes it for me.