Why do my read-only tokens keep getting deleted from npm's site?
Repro steps:
I create a new read-only token using npm's web portal:
It is successfully created.
I then store the token in my command line config (.zshrc
in my case)
export NPM_TOKEN=f00ba4ba-2f00-ba4b-a2f0-0ba4ba2f00ba
And reference it in my .npmrc
(in my project folder).
This works great. npm whoami
works as intended, and I'm able to pull from our private repo.
...for a while...
A little while later, it's just gone. Pulling from our private repo fails with a 404
. npm whoami
returns a 402. And the token is gone from the npm web interface.
I thought maybe they have a one hour life time, but I can't see anywhere is the documentation where it says they have any expire time at all.
Is there an npm
command that a side-effect of deleting an auth-token?
Thanks in advance!