npm_token_revoke
Revoke an npm access token by its key, requiring explicit confirmation to prevent accidental revocation of the active token.
Instructions
Revoke an access token by its key (UUID from npm_tokens). Requires confirm: true. Revoking the token currently in use by NPM_TOKEN will break the next call. Creating tokens is NOT exposed because the endpoint requires the user password — create via https://www.npmjs.com/settings/~/tokens instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be literally true. Guards against revoking the token you're authenticating with. | |
| tokenKey | Yes | Token key (UUID shown by npm_tokens) |