Skip to content

fix: token being cleared by user status#11

Open
neozhuang wants to merge 1 commit into
cnblogs:mainfrom
neozhuang:fix-token-cleared-on-status
Open

fix: token being cleared by user status#11
neozhuang wants to merge 1 commit into
cnblogs:mainfrom
neozhuang:fix-token-cleared-on-status

Conversation

@neozhuang
Copy link
Copy Markdown

Fixes token being cleared after running cnb user status.
user status refreshes cached user info by converting UserInfo into Cache, but that conversion initializes token as an empty string. This caused the saved cache to overwrite the existing token.
This change preserves the existing token before saving the refreshed cache.

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.

1 participant