-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
bug multiple refresh #635
Comments
Seems like the error is coming fr that api? |
|
Hey @nunob87 , why are you using sessions? The token-based auth supposed to be stateless, therefore no sessions should be used at all. You only need to keep record on the server-side about valid tokens and compare them with the token sent by Axios headers. |
Using vue-auth 3.3.8 and the same happens for me. |
if you do several refreshes in a row, it will give an error in the session, and kill the session
createError.js:16 Uncaught (in promise) Error: Request failed with status code 401
at e.exports (createError.js:16)
at e.exports (settle.js:17)
at XMLHttpRequest.d.onreadystatechange (xhr.js:69)
The text was updated successfully, but these errors were encountered: