-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
Returning 401 causes a mystery redirect #39
Comments
You can just overwrite the invalid token method. _invalidToken: function (res) { Right now it just does a force logout (to account for states where 401 In this case the redirect is coming from the logout data. logoutData: {url: 'auth/logout', method: 'POST', redirect: So there are a few ways to deal with it. You can just set some default in On Sat, Oct 29, 2016 at 1:06 AM, jkirkby91-2 notifications@github.com
Robert Duchnik |
Any luck here, can close this issue? |
In my app if the users credentials don't authenticate it returns a 401 http status code. Which causes vue-auth.js to do some mystery redirect back '/' rather than displaying the error. If a users credentials arent found a 404 is returned which prints the error returned. for the time being i am returning a 403 forbidden http status. Can you tell me how i disable this redirect for 401 responses
The text was updated successfully, but these errors were encountered: