-
Notifications
You must be signed in to change notification settings - Fork 877
Improve CLI logout flow #1692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve CLI logout flow #1692
Conversation
Should we delete the files? Or just make them empty? I'm good with either, just asking |
I prefer deleting them. We are checking for their presence at other places and raising errors about the user being logged out. |
Updated the flow as per discussion on #1686 When URL or Session file is not present:
We are no longer throwing an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks great. I think we definitely want the os.Remove
change, but approving nonetheless.
Can we make an endpoint on the api to delete the session token on the server side too? |
@Emyrk Do you think we could do this in a new issue? |
a4dc322
to
5f01dfd
Compare
This is updated now that we are only showing one message:
|
Yes that is fine |
* Improve CLI logout flow * Fix lint error * Make notLoggedInMessage a const * successful logout with a msg when cfg files are absent * use require, os.remove, show only one message, add prompt
Improves CLI logout flow based on feedback in #1609
Subtasks
Fixes #1686