npm: Reload Auth
npm_auth_reloadRe-reads the npm token from ~/.npmrc, NPM_TOKEN, and config, and reports if it changed. Fixes 401s after terminal npm login without restarting.
Instructions
Re-read the npm token from ~/.npmrc, NPM_TOKEN and the config file, and report whether it changed. Use this after npm login in a terminal: this server captures the token when it starts, so a login that visibly worked leaves it sending the OLD credential and failing 401 on everything while npm whoami in your shell succeeds. Cheap and safe — it reads three files, sends nothing to npm, and never reports the token itself. It re-reads ONLY the token: the registry, the write gate and the OTP settings stay as they were at startup, so a reload can never quietly widen what this server may do. One limit worth knowing: if the server started with NO token at all, the credentialled tools were never registered, and a reload cannot add them — that case still needs a restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||