You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f46912c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(auth): preserve output preferences on logout (#49)
`qn auth logout` deleted the entire config file, wiping the user's
`[output]` preferences (format, wide) along with the API key. Logout now
clears only `[api].key` and rewrites the file, keeping output settings
intact.
Extracts the atomic-write path from `save_api_key` into a shared
`write_config` helper, reused by the new `clear_api_key`. Adds 3 config
tests (preserves output section, writes defaults when no file exists,
keeps 0600 perms).
0 commit comments