npm error Unable to authenticate, your authentication token seems to be invalid. #5224
Replies: 3 comments
-
Because your package access is set to https://verdaccio.org/docs/configuration#jwt-token-signature |
Beta Was this translation helpful? Give feedback.
-
Thanks . I was having the same issue . However on logout it does not remove the user state properly and the packages are still visible , although they should not . what is it wrong ? |
Beta Was this translation helpful? Give feedback.
-
I'm aware of the issue @burloiumarian23 but haven't had time to fix it. There's something wrong with checking if the token is expired (https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/utils/token.ts, https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/store/models/login.ts). Feel free to debug and suggest a PR Continue with the existing issue #4078 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Your environment
Describe the bug
web ui and cli can login, but unable publish package
Steps to reproduce
Expected behavior
publish package
Screenshots, Verdaccio server log, package manager log
logs
Configuration file
Debugging output
$ NODE_DEBUG=request verdaccio
display request calls (verdaccio <--> uplinks)$ DEBUG=verdaccio* verdaccio
enable extreme verdaccio debug mode (verdaccio api)$ npm -ddd
prints:$ npm config get registry
prints:Contribute to Verdaccio
Others
Related References:
#3699
#1526
#5045
tried:
Beta Was this translation helpful? Give feedback.
All reactions