npm: Reload Auth
npm_auth_reloadReload the npm token cached by the server after you run npm login in a terminal, preventing stale credentials and 401 errors. Re-reads the token from ~/.npmrc and NPM_TOKEN without sending or exposing it.
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 | |||