In my application some routes are just accessible for authenticated users.When a unauthenticated user clicks on a link, for which he has to be signed in, he will be redi
Much easier with this library and login function is
let redirect = this.$auth.redirect(); this.$auth .login({ data: this.model, rememberMe: true, redirect: { name: redirect ? redirect.from.name : "homepage", query: redirect.from.query }, fetchUser: true })