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

fix: remove all profile keys when logging into a new account #1078

Merged
merged 2 commits into from
May 23, 2023

Conversation

charliecruzan-stripe
Copy link
Contributor

Reviewers

r? @vcheung-stripe
cc @stripe/developer-products

Summary

https://jira.corp.stripe.com/browse/DX-8171

We want to clear the profile before writing to it, otherwise stale profile data can linger around. For example, if you login to a new account that doesn't have a business name set, your display name in the Stripe CLI will be innaccurate.

@charliecruzan-stripe charliecruzan-stripe marked this pull request as ready for review May 23, 2023 17:20
@charliecruzan-stripe charliecruzan-stripe requested a review from a team as a code owner May 23, 2023 17:20
Copy link
Collaborator

@vcheung-stripe vcheung-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@charliecruzan-stripe
Copy link
Contributor Author

@vcheung-stripe could i get another stamp? i wanted to add one more test case to make sure we're not deleting other profiles somehow

@charliecruzan-stripe charliecruzan-stripe merged commit 99d6afc into master May 23, 2023
@charliecruzan-stripe charliecruzan-stripe deleted the charliecruzan/DX-8171 branch May 23, 2023 19:48
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