sqreen/vue-authentication-example

strict token checking

shrikantr-iprogrammer opened this issue · 1 comments

Even if I delete the token from local storage and click on any link I reach to that page. Ideally it should redirect me to login page. But yes when I refresh the page it takes me to the login page.

You are right !
When the user click an authenticated page, it should be redirected to /login. Why ? because of the axios interceptors for unauthenticated calls.
However this demo doesnt use any apis and mocks the api calls. The mocked api calls here do no handle this case. If you want you can try yourself and make a PR, i d be happy to review it :)