Skip to content

Migrate apiKey to apiToken if it occurs#387

Merged
jdalton merged 1 commit intomainfrom
migrate_api_key
Mar 26, 2025
Merged

Migrate apiKey to apiToken if it occurs#387
jdalton merged 1 commit intomainfrom
migrate_api_key

Conversation

@pvdz
Copy link
Contributor

@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
8 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