websanova / vue-auth

A simple light-weight authentication library for Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigation to the second index.html after successful login

roma177 opened this issue · comments

Hi, in my vue app I have auth.html and app.html. Vue-auth is installed at auth.html and after successful user authorization at auth.html I want it to be redirected to app.html. I need to redirect between html pages upon successful authorization. I only was able to achieve that url changes if I use options loginData: {redirect: "/app"} in Vue-auth. But as I don't have <router-view component installed at auth.html (I do not need it there), url change does not induce any route is displayed under vue router config, so nothing changes except for url upon succesful authorization. What I need is that after successful auth to redirect from auth.html to app.html. How I can achieve this?