Open mbonaci opened 5 years ago
Could/should the implementation just delete that file then?
We keep some across-sessions params there that user can set, like default-size
, range-separator
and trace
.
It's even simpler than having to deal with files - we'll just invoke configSet
with empty value for apiKey
, token
and region
.
(Implementation detail: configSet
should in turn invoke existing function config.deleteSync
when value is empty)
Any command after this will ask user to login first.
Now that users have to choose
region
during login, we should allow them to logout from the active session in order to switch between regions and Log applications.Currently, the only way to force logout (short of waiting 30 min) is to manually delete the session config file at
~/.config/configstore/logsene/<user>.json
or to removeapiKey
and/ortoken
from it.