Skip to content
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

Migrate apiKey to apiToken if it occurs #387

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Migrate apiKey to apiToken if it occurs #387

merged 1 commit into from
Mar 26, 2025

Conversation

pvdz
Copy link
Collaborator

@pvdz pvdz commented Mar 26, 2025

Let's migrate apiKey out of the config.

After this PR, when the CLI loads the config, if it see the apiKey property set it will delete it and write its value to apiToken instead. It will then persist the config.

This way users should automatically migrate to the new key and in a next major bump we can remove this migration logic. Anyone who wasn't auto-migrated will simply be considered logged out so they can socket login to remedy that, no big deal.

@pvdz pvdz requested a review from jdalton March 26, 2025 09:47
@jdalton jdalton merged commit d26fd70 into main Mar 26, 2025
17 checks passed
@jdalton jdalton deleted the migrate_api_key branch March 26, 2025 11:26
jdalton pushed a commit that referenced this pull request Mar 26, 2025
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