Skip to content

request: oidc support #415

Closed
Closed

Description

@SerenModz21

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.

Examples of a getOidcToken function:

Describe alternatives you've considered

There are no alternative solutions.

Additional context

npm/cli#8547 (comment)

Fixed in #10038.

Available in:

Image

Activity

  1. favna commented on Oct 2, 2026

    @favna
    Member

    This package calls npm deprecate not npm dist-tags though...?

  2. SerenModz21 commented on Oct 2, 2026

    @SerenModz21
    Author

    This package calls npm deprecate not npm dist-tags though...?

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions