You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have my login form on the authRedirect page (/login). After my API server returns failed login (code 401), the plugin attempts to redirect to the same page which results into uncaught error.
To Reproduce
Steps to reproduce the behavior:
Call this.$auth.login({ ... }) on the authRedirect page (/login).
Expected behavior
I'd expect no redirect if login request failed and the user is already on the authRedirect page.
The text was updated successfully, but these errors were encountered:
I also got an error on the after login route. Not sure why it attempted to redirect while logged in, but that may be related to the dev server.
I think both redirects are happening inside the beforeEach navigation guards, maybe some check like if from == to then next(false) could be implemented.
Describe the bug
I have my login form on the
authRedirect
page (/login
). After my API server returns failed login (code 401
), the plugin attempts to redirect to the same page which results into uncaught error.To Reproduce
Steps to reproduce the behavior:
Call this.$auth.login({ ... }) on the
authRedirect
page (/login
).Expected behavior
I'd expect no redirect if login request failed and the user is already on the
authRedirect
page.The text was updated successfully, but these errors were encountered: