Skip to content

REC-195: recommend -store=file when keyring is not available#66

Merged
jayconrod merged 1 commit intomainfrom
jay-err-store-file
Mar 26, 2025
Merged

REC-195: recommend -store=file when keyring is not available#66
jayconrod merged 1 commit intomainfrom
jay-err-store-file

Conversation

@jayconrod
Copy link
Contributor

In the login and import commands, test if we can load a token from
the keyring before doing anything. If the keyring is not available,
print a message that recommends -store=file.

Previously, we could go through the whole login flow then fail to
store the token. This was frustrating for the user since it wasn't
clear what to do next (keyring errors are obscure), and once they
figure it out, then have to go through the login flow again.

In the login and import commands, test if we can load a token from
the keyring before doing anything. If the keyring is not available,
print a message that recommends -store=file.

Previously, we could go through the whole login flow then fail to
store the token. This was frustrating for the user since it wasn't
clear what to do next (keyring errors are obscure), and once they
figure it out, then have to go through the login flow again.
@jayconrod jayconrod merged commit fa1bd47 into main Mar 26, 2025
5 checks passed
@jayconrod jayconrod deleted the jay-err-store-file branch March 26, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants