-
Notifications
You must be signed in to change notification settings - Fork 927
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
Reset Axios token/header on reset/logout #57
Comments
So adding something like for those who have the same issue you can add: i'd love to contribute with a PR but this is such a tiny detail 😅 |
This is my workaround:
|
Or more simply (ref): this.$axios.setToken(false) |
Fixed in #84 |
Why this has been re-opened @pi0 ? |
Fixed and released in 4.0.0. |
Hi agian,
When the user logs in auth module sets the headers in axios with the authentication header which is cool but when the user logs out, the
reset()
method does not empty/reset the header, so unless the page is refreshed the user is still logged in when making api requestsThe text was updated successfully, but these errors were encountered: