Skip to content
New issue

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

Bearer token key naming inconsistent for local storage #82

Open
justb4 opened this issue Nov 29, 2021 · 0 comments
Open

Bearer token key naming inconsistent for local storage #82

justb4 opened this issue Nov 29, 2021 · 0 comments

Comments

@justb4
Copy link

justb4 commented Nov 29, 2021

The current login/logout actions in the Vuex store, that call the Axios REST API, use browser Local Storage to set/remove a Bearer Token. using the secure-ls package.

The key-name on set() and remove() for the token value is inconsistent, for example on login the name is tokenKey, but on logout the name is token. The result is that the token remains in Local Storage and the Dashboard can be accessed after logout.

There are several places in actions.js where ls.remove('token') is used. Change all these occurrences to ls.remove('tokenKey').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant