Skip to content

fix: remove deprecated always_auth from npmrc sync - #773

Merged
m-s- merged 1 commit into
criticalmanufacturing:developmentfrom
m-s-:development-remove-always-auth
Jul 22, 2026
Merged

fix: remove deprecated always_auth from npmrc sync#773
m-s- merged 1 commit into
criticalmanufacturing:developmentfrom
m-s-:development-remove-always-auth

Conversation

@m-s-

@m-s- m-s- commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Description

cmf login sync was writing always_auth=true to ~/.npmrc for every synced NPM credential (both Basic and Bearer auth). This npm config option has been deprecated since npm v7 and is being fully removed in upcoming versions, causing warnings and errors for users.

This PR removes the always_auth writes entirely — the _auth / _authToken values alone are sufficient for authenticating with private registries.

Changes

  • NPMRepositoryCredentials.cs — removed config.SetValue for always_auth in both the Basic and Bearer credential sync paths
  • RepositoryCredentials.cs (tests) — removed always_auth from mock input and expected output assertions

@m-s-
m-s- force-pushed the development-remove-always-auth branch from c2c2d60 to 43ba9fc Compare July 21, 2026 14:01
@m-s-
m-s- merged commit 692d8f6 into criticalmanufacturing:development Jul 22, 2026
2 checks passed
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