You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
npm-deprecate currently requires long-lived NPM tokens. However, in Jan 2027, 2FA becomes required and will prevent Discord.js, Sapphire, my packages, and others from automatically deprecating old versions.
Describe the solution you'd like
As of today, NPM now supports OIDC for dist-tags. The solution would be to exchange an OIDC token and then pass it to npm-registry-fetch.
npm-registry-fetch can also be used to make the exchange.
Activity
favna commentedon Oct 2, 2026
This package calls
npm deprecatenotnpm dist-tagsthough...?SerenModz21 commentedon Oct 2, 2026
My apologies. I've had it in my head that the package also uses
dist-tags, not just npm deprecate.Will have to see if we can get OIDC support for the deprecate command.