Skip to content

logout bugfixes - #6895

Merged
wraithgar merged 5 commits into
latestfrom
gar/logout-config-location
Oct 12, 2023
Merged

logout bugfixes#6895
wraithgar merged 5 commits into
latestfrom
gar/logout-config-location

Conversation

@wraithgar

@wraithgarwraithgar commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

Fixes two bugs with npm logout

First, the token delete request is sent to the same registry that the
token was nerf-darted to.

Second, the token is deleted from the config that it was found in.

The tests were also rewritten to use the mock registry, which is how the
first bug was found.

Closes#3888

@wraithgar
wraithgar requested a review from a team as a code ownerOctober 10, 2023 19:23
@wraithgar
wraithgar merged commit fcc9e40 into latestOct 12, 2023
@wraithgar
wraithgar deleted the gar/logout-config-location branch October 12, 2023 16:20
@github-actionsgithub-actionsBot mentioned this pull request Oct 12, 2023
Sign up for freeto 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.

[BUG] NPM Logout Removes Wrong Access Token

2 participants

@wraithgar@fritzy