CLI keeps logging out

Since I upgraded to the latest CLI 3.83.3, the CLI has logged out multiple times and asks for login or saying the credentials are invalid.

Yesterday, after running shopify app dev it asked me to log in in browser, confirm and go back to terminal, there it asked for store password, I enter the correct password multiple times and it kept saying that it is incorrect password, then suddenly it managed to log in, after entering the same password multiple times.

Today, after running shopify app config use I got

error
│ The currently available CLI credentials are invalid.
│ The CLI is currently unable to prompt for reauthentication.
│ Restart the CLI process you were running. If in an interactive terminal, you will be
│ prompted to reauthenticate. If in a non-interactive terminal, ensure the correct
│ credentials are available in the program environment.

Then I ran shopify app dev, it asked to log in to shopify, and I managed to log in via link. It didn’t ask for store password.

Before upgrading to the latest CLI, I was developing locally for weeks, the CLI was logged in all the time.

I see there is an open issue on github - however this is related to an older version than yours.

Perhaps try downgrading to your previous version that worked for the time being?
If you use NPM for CLI you can use this command below to downgrade - just add in your preferred version.

npm i -g @shopify/cli@<version>

Just to report that today the CLI did not log out, after I logged in in the morning.