We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Your Environment
Describe the bug
Header menu shows user as authenticated even token is expired. Уou need to logout/login for view packages.
To Reproduce
Expected behavior
Display login button only if token expired. Because no packages will be visible anyway.
Screenshots, server logs, package manager log
Configuration File (cat ~/.config/verdaccio/config.yaml)
plugins: /verdaccio/plugins storage: /verdaccio/storage/data uplinks: npmjs: url: https://registry.npmjs.org/ packages: "@*/*": access: $authenticated publish: $authenticated proxy: npmjs "**": access: $all publish: $authenticated proxy: npmjs web: title: NPM Registry showInfo: false logs: - { type: stdout, format: pretty, level: debug }
Contribute to Verdaccio
Should I just fix defaultUserState in store value, depending on isTokenExpire? Maybe I missed something about JWTVerifyOptions.ignoreExpiration?
defaultUserState
isTokenExpire
const defaultUserState: LoginBody = isTokenExpire(token) ? { token: null, username: null } : { token, username };
The text was updated successfully, but these errors were encountered:
small question, What's the context of isTokenExpire ? where it comes from?
Sorry, something went wrong.
import { isTokenExpire } from 'verdaccio-ui/utils/login';
Simple token expiration and format checking function.
Related to: #3163
No branches or pull requests
Your Environment
Describe the bug
Header menu shows user as authenticated even token is expired. Уou need to logout/login for view packages.
To Reproduce
Expected behavior
Display login button only if token expired. Because no packages will be visible anyway.
Screenshots, server logs, package manager log
Configuration File (cat ~/.config/verdaccio/config.yaml)
Contribute to Verdaccio
Should I just fix
defaultUserState
in store value, depending onisTokenExpire
? Maybe I missed something about JWTVerifyOptions.ignoreExpiration?The text was updated successfully, but these errors were encountered: